<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Class template devector</title>
<link rel="stylesheet" href="../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
<link rel="up" href="../../boost_container_header_reference.html#doxygen.boost_container_header_reference.devector_8hpp" title="Header &lt;boost/container/devector.hpp&gt;">
<link rel="prev" href="structboost_1_1container_1_1pmr_1_1deque__of.html" title="Struct template deque_of">
<link rel="next" href="structboost_1_1container_1_1reserve__only__tag__t.html" title="Struct reserve_only_tag_t">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../boost.png"></td>
<td align="center"><a href="../../../../index.html">Home</a></td>
<td align="center"><a href="../../../../libs/libraries.htm">Libraries</a></td>
<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
<td align="center"><a href="../../../../more/index.htm">More</a></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="structboost_1_1container_1_1pmr_1_1deque__of.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../boost_container_header_reference.html#doxygen.boost_container_header_reference.devector_8hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="structboost_1_1container_1_1reserve__only__tag__t.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2><span class="refentrytitle">Class template devector</span></h2>
<p>boost::container::devector</p>
</div>
<h2 class="refsynopsisdiv-title">Synopsis</h2>
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../boost_container_header_reference.html#doxygen.boost_container_header_reference.devector_8hpp" title="Header &lt;boost/container/devector.hpp&gt;">boost/container/devector.hpp</a>&gt;

</span><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T<span class="special">,</span> <span class="keyword">typename</span> A <span class="special">=</span> <span class="keyword">void</span><span class="special">,</span> <span class="keyword">typename</span> Options <span class="special">=</span> <span class="keyword">void</span><span class="special">&gt;</span> 
<span class="keyword">class</span> <a class="link" href="classboost_1_1container_1_1devector.html" title="Class template devector">devector</a> <span class="special">{</span>
<span class="keyword">public</span><span class="special">:</span>
  <span class="comment">// types</span>
  <span class="keyword">typedef</span> <span class="identifier">T</span>                                                   <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a308fff356cd72366bb92260eab0afedf"></a><span class="identifier">value_type</span><span class="special">;</span>            
  <span class="keyword">typedef</span> <span class="identifier">implementation_defined</span>                              <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a38312f120d9e0f87c364a7489529d450"></a><span class="identifier">allocator_type</span><span class="special">;</span>        
  <span class="keyword">typedef</span> <span class="identifier">allocator_type</span>                                      <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a5a4b1d37e97d071609975ae56b83bb5a"></a><span class="identifier">stored_allocator_type</span><span class="special">;</span> 
  <span class="keyword">typedef</span> <a class="link" href="structboost_1_1container_1_1allocator__traits.html" title="Struct template allocator_traits">allocator_traits</a><span class="special">&lt;</span> <span class="identifier">allocator_type</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">pointer</span>         <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a8b10baa3f159cbbde2292b3d46912172"></a><span class="identifier">pointer</span><span class="special">;</span>               
  <span class="keyword">typedef</span> <a class="link" href="structboost_1_1container_1_1allocator__traits.html" title="Struct template allocator_traits">allocator_traits</a><span class="special">&lt;</span> <span class="identifier">allocator_type</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">const_pointer</span>   <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a750468d6cdf0e7c8b6e261a83be30908"></a><span class="identifier">const_pointer</span><span class="special">;</span>         
  <span class="keyword">typedef</span> <a class="link" href="structboost_1_1container_1_1allocator__traits.html" title="Struct template allocator_traits">allocator_traits</a><span class="special">&lt;</span> <span class="identifier">allocator_type</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">reference</span>       <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a61a7c13b5b0bbd741160eb72ed257258"></a><span class="identifier">reference</span><span class="special">;</span>             
  <span class="keyword">typedef</span> <a class="link" href="structboost_1_1container_1_1allocator__traits.html" title="Struct template allocator_traits">allocator_traits</a><span class="special">&lt;</span> <span class="identifier">allocator_type</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">const_reference</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1af25cbd480576734e985c3ecefd110328"></a><span class="identifier">const_reference</span><span class="special">;</span>       
  <span class="keyword">typedef</span> <a class="link" href="structboost_1_1container_1_1allocator__traits.html" title="Struct template allocator_traits">allocator_traits</a><span class="special">&lt;</span> <span class="identifier">allocator_type</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">size_type</span>       <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1ae83308d3f10da38fabc927aa4606b08b"></a><span class="identifier">size_type</span><span class="special">;</span>             
  <span class="keyword">typedef</span> <a class="link" href="structboost_1_1container_1_1allocator__traits.html" title="Struct template allocator_traits">allocator_traits</a><span class="special">&lt;</span> <span class="identifier">allocator_type</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">difference_type</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a3c79ddbba42d9109dfce7fb51eed11ff"></a><span class="identifier">difference_type</span><span class="special">;</span>       
  <span class="keyword">typedef</span> <span class="identifier">pointer</span>                                             <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a6729fe7c9204db8771d2328b6bb567c7"></a><span class="identifier">iterator</span><span class="special">;</span>              
  <span class="keyword">typedef</span> <span class="identifier">const_pointer</span>                                       <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1ae80383dc6ce5de0fa1b3b86afe4d3587"></a><span class="identifier">const_iterator</span><span class="special">;</span>        
  <span class="keyword">typedef</span> <span class="identifier">implementation_defined</span>                              <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a464b38e763491021c1a3b54275cbad99"></a><span class="identifier">reverse_iterator</span><span class="special">;</span>      
  <span class="keyword">typedef</span> <span class="identifier">implementation_defined</span>                              <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a9606cf18c2543b3c32ba7e816786df36"></a><span class="identifier">const_reverse_iterator</span><span class="special">;</span>

  <span class="comment">// <a class="link" href="classboost_1_1container_1_1devector.html#id17-bb">public member functions</a></span>
  <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a72b8e368721d3908b8ade2c3ab745a69"><span class="identifier">devector</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="keyword">explicit</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1ac0f883634e4e7fb743ed5c79b405aebf"><span class="identifier">devector</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a856a54231e398dc5b68d4be9dc82020c"><span class="identifier">devector</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">,</span> <span class="identifier">reserve_only_tag_t</span><span class="special">,</span> 
           <span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&amp;</span> <span class="special">=</span> <span class="identifier">allocator_type</span><span class="special">(</span><span class="special">)</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1abfbeb1fd895909045bfd5f0d22232b9c"><span class="identifier">devector</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">,</span> <span class="identifier">size_type</span><span class="special">,</span> <span class="identifier">reserve_only_tag_t</span><span class="special">,</span> 
           <span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&amp;</span> <span class="special">=</span> <span class="identifier">allocator_type</span><span class="special">(</span><span class="special">)</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">explicit</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1aecad4eb3ed4121875f11825ee86f57a2"><span class="identifier">devector</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&amp;</span> <span class="special">=</span> <span class="identifier">allocator_type</span><span class="special">(</span><span class="special">)</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">explicit</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a3de4bfc7cd47ad95018815d96a139775"><span class="identifier">devector</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">,</span> <a class="link" href="structboost_1_1container_1_1default__init__t.html" title="Struct default_init_t">default_init_t</a><span class="special">,</span> 
                    <span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&amp;</span> <span class="special">=</span> <span class="identifier">allocator_type</span><span class="special">(</span><span class="special">)</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a33e42a859c7eb25f2eb9946951dba98a"><span class="identifier">devector</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">T</span> <span class="special">&amp;</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&amp;</span> <span class="special">=</span> <span class="identifier">allocator_type</span><span class="special">(</span><span class="special">)</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> InputIterator<span class="special">&gt;</span> 
    <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1ad918fff9cd8bd0d4988c7899c624a505"><span class="identifier">devector</span></a><span class="special">(</span><span class="identifier">InputIterator</span><span class="special">,</span> <span class="identifier">InputIterator</span><span class="special">,</span> 
             <span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&amp;</span> <span class="special">=</span> <span class="identifier">allocator_type</span><span class="special">(</span><span class="special">)</span> <span class="identifier">BOOST_CONTAINER_DOCIGN</span><span class="special">(</span><span class="identifier">BOOST_MOVE_I</span> <span class="keyword">typename</span> <span class="identifier">dtl</span><span class="special">::</span><span class="identifier">disable_if_or</span><span class="special">&lt;</span> <span class="keyword">void</span> <span class="identifier">BOOST_MOVE_I</span> <span class="identifier">dtl</span><span class="special">::</span><span class="identifier">is_convertible</span><span class="special">&lt;</span> <span class="identifier">InputIterator</span> <span class="identifier">BOOST_MOVE_I</span> <span class="identifier">size_type</span> <span class="special">&gt;</span> <span class="identifier">BOOST_MOVE_I</span> <span class="identifier">dtl</span><span class="special">::</span><span class="identifier">is_not_input_iterator</span><span class="special">&lt;</span> <span class="identifier">InputIterator</span> <span class="special">&gt;</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">type</span> <span class="special">*=</span><span class="number">0</span><span class="special">)</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1ad031d8b31bd004bd5aa6af452ad66788"><span class="identifier">devector</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1container_1_1devector.html" title="Class template devector">devector</a> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a4e14d335e676ddf2480e7e72a3af3a78"><span class="identifier">devector</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1container_1_1devector.html" title="Class template devector">devector</a> <span class="special">&amp;</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1ac52baabd771b9fafe0001b07d8c36459"><span class="identifier">devector</span></a><span class="special">(</span><a class="link" href="classboost_1_1container_1_1devector.html" title="Class template devector">devector</a> <span class="special">&amp;&amp;</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1ae97aa98ddd1d875f0cfa11ac4c2d5861"><span class="identifier">devector</span></a><span class="special">(</span><a class="link" href="classboost_1_1container_1_1devector.html" title="Class template devector">devector</a> <span class="special">&amp;&amp;</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1ad462a1bc34ef3b2d56f7f73f6fa83ca2"><span class="identifier">devector</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">initializer_list</span><span class="special">&lt;</span> <span class="identifier">T</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">,</span> 
           <span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&amp;</span> <span class="special">=</span> <span class="identifier">allocator_type</span><span class="special">(</span><span class="special">)</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a89da99f9b4c05b6111453075befda36a"><span class="special">~</span><span class="identifier">devector</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1devector.html" title="Class template devector">devector</a> <span class="special">&amp;</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1ac57d8f2794d660554c18030f9ed1189f"><span class="keyword">operator</span><span class="special">=</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1container_1_1devector.html" title="Class template devector">devector</a> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1devector.html" title="Class template devector">devector</a> <span class="special">&amp;</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a473ac620aab75e275231716f35879fd3"><span class="keyword">operator</span><span class="special">=</span></a><span class="special">(</span><a class="link" href="classboost_1_1container_1_1devector.html" title="Class template devector">devector</a> <span class="special">&amp;&amp;</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1devector.html" title="Class template devector">devector</a> <span class="special">&amp;</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a6bcd59101a1447222be8931ba6cc2a37"><span class="keyword">operator</span><span class="special">=</span></a><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">initializer_list</span><span class="special">&lt;</span> <span class="identifier">T</span> <span class="special">&gt;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> InputIterator<span class="special">&gt;</span> 
    <span class="keyword">void</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a2b6b2aa95a30ec320328c1f6c018310d"><span class="identifier">assign</span></a><span class="special">(</span><span class="identifier">InputIterator</span><span class="special">,</span> <span class="identifier">InputIterator</span> <span class="identifier">last</span> <span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a2067abdfea70b1c3974048a596dc5e11"><span class="identifier">assign</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">T</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a2b765222438de2d2c196754b810b7d78"><span class="identifier">assign</span></a><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">initializer_list</span><span class="special">&lt;</span> <span class="identifier">T</span> <span class="special">&gt;</span><span class="special">)</span><span class="special">;</span>
  <span class="identifier">allocator_type</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1adacfd55fcc429bc6f0dbe26dceeb490a"><span class="identifier">get_allocator</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&amp;</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a14cf3f970bd9ea1ae15f7bc2474ccbf0"><span class="identifier">get_stored_allocator</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="identifier">allocator_type</span> <span class="special">&amp;</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a0d602147234a84ad28df9783e30094c2"><span class="identifier">get_stored_allocator</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="identifier">iterator</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1aeea85e1edbcae36ac717fb8b4539418e"><span class="identifier">begin</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="identifier">const_iterator</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a00270e0fec3b198973810d2fca4ba6c8"><span class="identifier">begin</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="identifier">iterator</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1afc6dab064df380d9721614abc5b234ae"><span class="identifier">end</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="identifier">const_iterator</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a0e3768a4af2de2568a62b73c8c1d9dd7"><span class="identifier">end</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="identifier">reverse_iterator</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1ad77c0f7b29a492b4b89be8da6c28e1ad"><span class="identifier">rbegin</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="identifier">const_reverse_iterator</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a5a88e2b8e7c8a52a910796982e4e2f6a"><span class="identifier">rbegin</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="identifier">reverse_iterator</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a35eeb37c0ed621014e6c17f90072e7cb"><span class="identifier">rend</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="identifier">const_reverse_iterator</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a87e22224bf64e5ada02e63e41d5b6fec"><span class="identifier">rend</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="identifier">const_iterator</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a7a388aad14738d4e9f42c945020b83ca"><span class="identifier">cbegin</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="identifier">const_iterator</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1aec16514732d0be5a6b636c16978464f8"><span class="identifier">cend</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="identifier">const_reverse_iterator</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a09ab7f06941e95046533515792c8ef93"><span class="identifier">crbegin</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="identifier">const_reverse_iterator</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1ac029f709433662631c77f2c1cf1b2b86"><span class="identifier">crend</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="keyword">bool</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1adf610789591b2fce61ce24fdd8032308"><span class="identifier">empty</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="identifier">size_type</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1abbd33a659cd6e7f3084f5635db5857c7"><span class="identifier">size</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="identifier">size_type</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a06ed6f401d8edb5065fcf0417c0f4b1a"><span class="identifier">max_size</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="identifier">size_type</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a0c5eb747d982a401967213cdbfd4cf75"><span class="identifier">capacity</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="identifier">size_type</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1adc07fd187fc51b2535e6929573a71274"><span class="identifier">front_free_capacity</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="identifier">size_type</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a7ed0d23190215ed4aba56a462e9f3183"><span class="identifier">back_free_capacity</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a5d6affe9018dba247da1d1d49b188900"><span class="identifier">resize</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1ad9568a61414d0e9ddc158928bafde560"><span class="identifier">resize</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">,</span> <a class="link" href="structboost_1_1container_1_1default__init__t.html" title="Struct default_init_t">default_init_t</a><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1ae7c6f2927e08d6c56ffa8bb2818bb030"><span class="identifier">resize</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">T</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a169f1ba456f8f4bf94bf7976355ab975"><span class="identifier">resize_front</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1af275beb266ee7a15905cbfea000edfc3"><span class="identifier">resize_front</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">,</span> <a class="link" href="structboost_1_1container_1_1default__init__t.html" title="Struct default_init_t">default_init_t</a><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a750dc1522e1177176ddc211ac4f149a9"><span class="identifier">resize_front</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">T</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1ac526c5f89cd25d1e07ce20c687e0f44e"><span class="identifier">resize_back</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a19a099d36e7dbd420245062d12eace25"><span class="identifier">resize_back</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">,</span> <a class="link" href="structboost_1_1container_1_1default__init__t.html" title="Struct default_init_t">default_init_t</a><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a0593021fae7e4f46f63a5225f2e895dc"><span class="identifier">resize_back</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">T</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a956f41cce973d180f810349cd5ee1579"><span class="identifier">reserve</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1aef3ea5145d1aa523234bc2418bb354f1"><span class="identifier">reserve_front</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a83ad487f1eec3ac9673c381d82931952"><span class="identifier">reserve_back</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a550e9ec07c1763f684dabf7f2b1bf2bb"><span class="identifier">shrink_to_fit</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
  <span class="identifier">reference</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a5dd42e9dec56e901168ebcab7665363e"><span class="keyword">operator</span><span class="special">[</span><span class="special">]</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="identifier">const_reference</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1ab0ca69228482c4bd1b047e0c160b6e79"><span class="keyword">operator</span><span class="special">[</span><span class="special">]</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="identifier">iterator</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1adc945b01042d7a8afca277174e29954e"><span class="identifier">nth</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="identifier">const_iterator</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a12bfb28de44ae9bcbc15f6feb4430938"><span class="identifier">nth</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="identifier">size_type</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a243298ba7d0dd4a4301806538fb4df18"><span class="identifier">index_of</span></a><span class="special">(</span><span class="identifier">iterator</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="identifier">size_type</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1ab42917265270a462ca95d6bc2e0be66a"><span class="identifier">index_of</span></a><span class="special">(</span><span class="identifier">const_iterator</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="identifier">reference</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1ae74249ed8aaaf83e492483c837468258"><span class="identifier">at</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">)</span><span class="special">;</span>
  <span class="identifier">const_reference</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a4bb25cb36835ecdbc2a659b081e03846"><span class="identifier">at</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="identifier">reference</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a156e479e8ed1fb75f8d81da0684e6353"><span class="identifier">front</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="identifier">const_reference</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1adbf4b29887bf5e305ec54af3bb67cb5b"><span class="identifier">front</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="identifier">reference</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1acd4ce8a4d21edc8e4f4bec0a200a8de3"><span class="identifier">back</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="identifier">const_reference</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a384ad8336e9a445f63bd56c62672eda1"><span class="identifier">back</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="identifier">T</span> <span class="special">*</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a2ffcfe63cc86ab7bf7b421530acdcc46"><span class="identifier">data</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="keyword">const</span> <span class="identifier">T</span> <span class="special">*</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1ab8967452e2fcf6c0f5011e3acf460947"><span class="identifier">data</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">class</span><span class="special">...</span> Args<span class="special">&gt;</span> <span class="identifier">reference</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a9794282393be1a3ae5c4b2c8d8f60c21"><span class="identifier">emplace_front</span></a><span class="special">(</span><span class="identifier">Args</span> <span class="special">&amp;&amp;</span><span class="special">...</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a2ca8bd113c26da1f78507e29795e00c8"><span class="identifier">push_front</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">T</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1aa20792ad3ab7bd75de89b3a72e934005"><span class="identifier">push_front</span></a><span class="special">(</span><span class="identifier">T</span> <span class="special">&amp;&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a9ef1e8e5f86b29d71fbecee11607e905"><span class="identifier">pop_front</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">class</span><span class="special">...</span> Args<span class="special">&gt;</span> <span class="identifier">reference</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1ac2945492702eef991855b84cef57c6a1"><span class="identifier">emplace_back</span></a><span class="special">(</span><span class="identifier">Args</span> <span class="special">&amp;&amp;</span><span class="special">...</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1af8bbffcc27bb4fb2aeb15a8ff73fc858"><span class="identifier">push_back</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">T</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a419765be9eebda00229638365e4df240"><span class="identifier">push_back</span></a><span class="special">(</span><span class="identifier">T</span> <span class="special">&amp;&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1ada4200afe2aa832a7a5af88749d894da"><span class="identifier">pop_back</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">class</span><span class="special">...</span> Args<span class="special">&gt;</span> <span class="identifier">iterator</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a7787efe80208807126a351990490f4de"><span class="identifier">emplace</span></a><span class="special">(</span><span class="identifier">const_iterator</span><span class="special">,</span> <span class="identifier">Args</span> <span class="special">&amp;&amp;</span><span class="special">...</span><span class="special">)</span><span class="special">;</span>
  <span class="identifier">iterator</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a9407091493f3a47a2367e0cc31dcf2f6"><span class="identifier">insert</span></a><span class="special">(</span><span class="identifier">const_iterator</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">T</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="identifier">iterator</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a176b71342827dcdd0192031da8cbc81c"><span class="identifier">insert</span></a><span class="special">(</span><span class="identifier">const_iterator</span><span class="special">,</span> <span class="identifier">T</span> <span class="special">&amp;&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="identifier">iterator</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a94c9c985da196b65ea599a753f61db42"><span class="identifier">insert</span></a><span class="special">(</span><span class="identifier">const_iterator</span><span class="special">,</span> <span class="identifier">size_type</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">T</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> InputIterator<span class="special">&gt;</span> 
    <span class="identifier">iterator</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a528cb99146ad3a610716d0ef31d52afd"><span class="identifier">insert</span></a><span class="special">(</span><span class="identifier">const_iterator</span><span class="special">,</span> <span class="identifier">InputIterator</span><span class="special">,</span> <span class="identifier">InputIterator</span> <span class="identifier">last</span> <span class="special">)</span><span class="special">;</span>
  <span class="identifier">iterator</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1ae34807e8136661c866a16a1aff10e9fe"><span class="identifier">insert</span></a><span class="special">(</span><span class="identifier">const_iterator</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">initializer_list</span><span class="special">&lt;</span> <span class="identifier">T</span> <span class="special">&gt;</span><span class="special">)</span><span class="special">;</span>
  <span class="identifier">iterator</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a19794e23c7d70e29670ebd3f71cf7f84"><span class="identifier">erase</span></a><span class="special">(</span><span class="identifier">const_iterator</span><span class="special">)</span><span class="special">;</span>
  <span class="identifier">iterator</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1ae742158fd3bc642f9a759f18e046210f"><span class="identifier">erase</span></a><span class="special">(</span><span class="identifier">const_iterator</span><span class="special">,</span> <span class="identifier">const_iterator</span><span class="special">)</span><span class="special">;</span>
  <span class="identifier">iterator</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a6ea4e1e139639d82eafdfc580c86b56e"><span class="identifier">erase</span></a><span class="special">(</span><span class="identifier">iterator</span><span class="special">,</span> <span class="identifier">iterator</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1aeaab3a1c699f6dc26ef570f68c4a378e"><span class="identifier">swap</span></a><span class="special">(</span><a class="link" href="classboost_1_1container_1_1devector.html" title="Class template devector">devector</a> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a6f66f4610f5ad07d6f08a74be90c2c7c"><span class="identifier">clear</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>

  <span class="comment">// <a class="link" href="classboost_1_1container_1_1devector.html#id18-bb">private member functions</a></span>
  <span class="keyword">void</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a0dbc6122b18d0853e820f1ec62074d7d"><span class="identifier">priv_move_assign</span></a><span class="special">(</span><a class="link" href="classboost_1_1container_1_1devector.html" title="Class template devector">devector</a> <span class="special">&amp;&amp;</span><span class="special">,</span> <span class="identifier">dtl</span><span class="special">::</span><span class="identifier">bool_</span><span class="special">&lt;</span> <span class="keyword">true</span> <span class="special">&gt;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a0ee675b9a9389f917ead9380778e619f"><span class="identifier">priv_move_assign</span></a><span class="special">(</span><a class="link" href="classboost_1_1container_1_1devector.html" title="Class template devector">devector</a> <span class="special">&amp;&amp;</span><span class="special">,</span> <span class="identifier">dtl</span><span class="special">::</span><span class="identifier">bool_</span><span class="special">&lt;</span> <span class="keyword">false</span> <span class="special">&gt;</span><span class="special">)</span><span class="special">;</span>
  <span class="identifier">size_type</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a531a2158b204f7f144015fda0b626b0e"><span class="identifier">pos_to_index</span></a><span class="special">(</span><span class="identifier">const_iterator</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="keyword">bool</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a346d914e8f2c67e5711e0cd135da22d6"><span class="identifier">should_move_back</span></a><span class="special">(</span><span class="identifier">const_iterator</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="identifier">size_type</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a40f1428ad2515f6c3d7d551ee7aa7da3"><span class="identifier">front_capacity</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="identifier">size_type</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a1aadfb5294eacb232f1d78a578bdc087"><span class="identifier">back_capacity</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>

  <span class="comment">// <a class="link" href="classboost_1_1container_1_1devector.html#id19-bb">private static functions</a></span>
  <span class="keyword">static</span> <span class="identifier">iterator</span> <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a0caa992416af384257296de8e51638f1"><span class="identifier">unconst_iterator</span></a><span class="special">(</span><span class="identifier">const_iterator</span><span class="special">)</span><span class="special">;</span>
<span class="special">}</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id-1.3.8.14.8.3.4"></a><h2>Description</h2>
<p>A vector-like sequence container providing front and back operations (e.g: <code class="computeroutput">push_front</code>/<code class="computeroutput">pop_front</code>/<code class="computeroutput">push_back</code>/<code class="computeroutput">pop_back</code>) with amortized constant complexity.</p>
<p>Models the <a href="http://en.cppreference.com/w/cpp/concept/SequenceContainer" target="_top">SequenceContainer</a>, <a href="http://en.cppreference.com/w/cpp/concept/ReversibleContainer" target="_top">ReversibleContainer</a>, and <a href="http://en.cppreference.com/w/cpp/concept/AllocatorAwareContainer" target="_top">AllocatorAwareContainer</a> concepts.</p>
<p><span class="bold"><strong>Requires</strong></span>:</p>
<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
<li class="listitem"><p><code class="computeroutput">T</code> shall be <a href="http://en.cppreference.com/w/cpp/concept/MoveInsertable" target="_top">MoveInsertable</a> into the devector.</p></li>
<li class="listitem"><p><code class="computeroutput">T</code> shall be <a href="http://en.cppreference.com/w/cpp/concept/Erasable" target="_top">Erasable</a> from any <code class="computeroutput">devector&lt;T, allocator_type, GP&gt;</code>.</p></li>
<li class="listitem"><p><code class="computeroutput">GrowthFactor</code>, and <code class="computeroutput">Allocator</code> must model the concepts with the same names or be void.</p></li>
</ul></div>
<p>
</p>
<p><span class="bold"><strong>Definition</strong></span>: <code class="computeroutput">T</code> is <code class="computeroutput">NothrowConstructible</code> if it's either nothrow move constructible or nothrow copy constructible.</p>
<p><span class="bold"><strong>Definition</strong></span>: <code class="computeroutput">T</code> is <code class="computeroutput">NothrowAssignable</code> if it's either nothrow move assignable or nothrow copy assignable.</p>
<p><span class="bold"><strong>Exceptions</strong></span>: The exception specifications assume <code class="computeroutput">T</code> is nothrow <a href="http://en.cppreference.com/w/cpp/concept/Destructible" target="_top">Destructible</a>.</p>
<p>Most methods providing the strong exception guarantee assume <code class="computeroutput">T</code> either has a move constructor marked noexcept or is <a href="http://en.cppreference.com/w/cpp/concept/CopyInsertable" target="_top">CopyInsertable</a> into the devector. If it isn't true, and the move constructor throws, the guarantee is waived and the effects are unspecified.</p>
<p>In addition to the exceptions specified in the <span class="bold"><strong>Throws</strong></span> clause, the following operations of <code class="computeroutput">T</code> can throw when any of the specified concept is required:</p>
<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
<li class="listitem"><p><a href="http://en.cppreference.com/w/cpp/concept/DefaultInsertable" target="_top">DefaultInsertable</a>: Default constructor</p></li>
<li class="listitem"><p><a href="http://en.cppreference.com/w/cpp/concept/MoveInsertable" target="_top">MoveInsertable</a>: Move constructor</p></li>
<li class="listitem"><p><a href="http://en.cppreference.com/w/cpp/concept/CopyInsertable" target="_top">CopyInsertable</a>: Copy constructor</p></li>
<li class="listitem"><p><a href="http://en.cppreference.com/w/cpp/concept/DefaultConstructible" target="_top">DefaultConstructible</a>: Default constructor</p></li>
<li class="listitem"><p><a href="http://en.cppreference.com/w/cpp/concept/EmplaceConstructible" target="_top">EmplaceConstructible</a>: Constructor selected by the given arguments</p></li>
<li class="listitem"><p><a href="http://en.cppreference.com/w/cpp/concept/MoveAssignable" target="_top">MoveAssignable</a>: Move assignment operator</p></li>
<li class="listitem"><p><a href="http://en.cppreference.com/w/cpp/concept/CopyAssignable" target="_top">CopyAssignable</a>: Copy assignment operator</p></li>
</ul></div>
<p>
</p>
<p>Furthermore, not <code class="computeroutput">noexcept</code> methods throws whatever the allocator throws if memory allocation fails. Such methods also throw <code class="computeroutput">length_error</code> if the capacity exceeds <code class="computeroutput"><a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a06ed6f401d8edb5065fcf0417c0f4b1a">max_size()</a></code>.</p>
<p><span class="bold"><strong>Remark</strong></span>: If a method invalidates some iterators, it also invalidates references and pointers to the elements pointed by the invalidated iterators.</p>
<p>! 
</p>
<div class="refsect2">
<a name="id-1.3.8.14.8.3.4.13"></a><h3>Template Parameters</h3>
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem"><pre class="literallayout"><span class="keyword">typename</span> T</pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">typename</span> A <span class="special">=</span> <span class="keyword">void</span></pre></li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">typename</span> Options <span class="special">=</span> <span class="keyword">void</span></pre>
<p>A type produced from <code class="computeroutput"><a class="link" href="structboost_1_1container_1_1devector__options.html" title="Struct template devector_options">boost::container::devector_options</a></code>. </p>
</li>
</ol></div>
</div>
<div class="refsect2">
<a name="id-1.3.8.14.8.3.4.14"></a><h3>
<a name="id17-bb"></a><code class="computeroutput">devector</code> public member functions</h3>
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem">
<pre class="literallayout"><a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a72b8e368721d3908b8ade2c3ab745a69"></a><span class="identifier">devector</span><span class="special">(</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Constructs an empty devector.</p>
<p><span class="bold"><strong>Postcondition</strong></span>: <code class="computeroutput"><a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1adf610789591b2fce61ce24fdd8032308">empty()</a> &amp;&amp; <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1adc07fd187fc51b2535e6929573a71274">front_free_capacity()</a> == 0 &amp;&amp; <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a7ed0d23190215ed4aba56a462e9f3183">back_free_capacity()</a> == 0</code>.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">explicit</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1ac0f883634e4e7fb743ed5c79b405aebf"></a><span class="identifier">devector</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&amp;</span> allocator<span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Constructs an empty devector, using the specified allocator.</p>
<p><span class="bold"><strong>Postcondition</strong></span>: <code class="computeroutput"><a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1adf610789591b2fce61ce24fdd8032308">empty()</a> &amp;&amp; <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1adc07fd187fc51b2535e6929573a71274">front_free_capacity()</a> == 0 &amp;&amp; <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a7ed0d23190215ed4aba56a462e9f3183">back_free_capacity()</a> == 0</code>.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant. </p>
</li>
<li class="listitem">
<pre class="literallayout"><a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a856a54231e398dc5b68d4be9dc82020c"></a><span class="identifier">devector</span><span class="special">(</span><span class="identifier">size_type</span> n<span class="special">,</span> <span class="identifier">reserve_only_tag_t</span><span class="special">,</span> 
         <span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&amp;</span> allocator <span class="special">=</span> <span class="identifier">allocator_type</span><span class="special">(</span><span class="special">)</span><span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Constructs an empty devector, using the specified allocator and reserves <code class="computeroutput">n</code> slots as if <code class="computeroutput">reserve(n)</code> was called.</p>
<p><span class="bold"><strong>Postcondition</strong></span>: <code class="computeroutput"><a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1adf610789591b2fce61ce24fdd8032308">empty()</a> &amp;&amp; <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a0c5eb747d982a401967213cdbfd4cf75">capacity()</a> &gt;= n</code>.</p>
<p><span class="bold"><strong>Exceptions</strong></span>: Strong exception guarantee.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant. </p>
</li>
<li class="listitem">
<pre class="literallayout"><a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1abfbeb1fd895909045bfd5f0d22232b9c"></a><span class="identifier">devector</span><span class="special">(</span><span class="identifier">size_type</span> front_free_cap<span class="special">,</span> <span class="identifier">size_type</span> back_free_cap<span class="special">,</span> 
         <span class="identifier">reserve_only_tag_t</span><span class="special">,</span> 
         <span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&amp;</span> allocator <span class="special">=</span> <span class="identifier">allocator_type</span><span class="special">(</span><span class="special">)</span><span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Constructs an empty devector, using the specified allocator and reserves at least <code class="computeroutput">front_free_cap + back_free_cap</code> slots as if <code class="computeroutput">reserve_front(front_cap)</code> and <code class="computeroutput">reserve_back(back_cap)</code> was called.</p>
<p><span class="bold"><strong>Postcondition</strong></span>: <code class="computeroutput"><a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1adf610789591b2fce61ce24fdd8032308">empty()</a> &amp;&amp; <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1adc07fd187fc51b2535e6929573a71274">front_free_capacity()</a> &gt;= front_free_cap &amp;&amp; <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a7ed0d23190215ed4aba56a462e9f3183">back_free_capacity()</a> &gt;= back_free_cap</code>.</p>
<p><span class="bold"><strong>Exceptions</strong></span>: Strong exception guarantee.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">explicit</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1aecad4eb3ed4121875f11825ee86f57a2"></a><span class="identifier">devector</span><span class="special">(</span><span class="identifier">size_type</span> n<span class="special">,</span> 
                  <span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&amp;</span> allocator <span class="special">=</span> <span class="identifier">allocator_type</span><span class="special">(</span><span class="special">)</span><span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Constructs a devector with <code class="computeroutput">n</code> value_initialized elements using the specified allocator.</p>
<p><span class="bold"><strong>Requires</strong></span>: <code class="computeroutput">T</code> shall be <a href="http://en.cppreference.com/w/cpp/concept/DefaultInsertable" target="_top">DefaultInsertable</a> into <code class="computeroutput">*this</code>.</p>
<p><span class="bold"><strong>Postcondition</strong></span>: <code class="computeroutput"><a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1abbd33a659cd6e7f3084f5635db5857c7">size()</a> == n</code>.</p>
<p><span class="bold"><strong>Exceptions</strong></span>: Strong exception guarantee.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Linear in <code class="computeroutput">n</code>. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">explicit</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a3de4bfc7cd47ad95018815d96a139775"></a><span class="identifier">devector</span><span class="special">(</span><span class="identifier">size_type</span> n<span class="special">,</span> <a class="link" href="structboost_1_1container_1_1default__init__t.html" title="Struct default_init_t">default_init_t</a><span class="special">,</span> 
                  <span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&amp;</span> allocator <span class="special">=</span> <span class="identifier">allocator_type</span><span class="special">(</span><span class="special">)</span><span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Constructs a devector with <code class="computeroutput">n</code> default-initialized elements using the specified allocator.</p>
<p><span class="bold"><strong>Requires</strong></span>: <code class="computeroutput">T</code> shall be [DefaultInsertable] into <code class="computeroutput">*this</code>.</p>
<p><span class="bold"><strong>Postcondition</strong></span>: <code class="computeroutput"><a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1abbd33a659cd6e7f3084f5635db5857c7">size()</a> == n</code>.</p>
<p><span class="bold"><strong>Exceptions</strong></span>: Strong exception guarantee.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Linear in <code class="computeroutput">n</code>. </p>
</li>
<li class="listitem">
<pre class="literallayout"><a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a33e42a859c7eb25f2eb9946951dba98a"></a><span class="identifier">devector</span><span class="special">(</span><span class="identifier">size_type</span> n<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">T</span> <span class="special">&amp;</span> value<span class="special">,</span> 
         <span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&amp;</span> allocator <span class="special">=</span> <span class="identifier">allocator_type</span><span class="special">(</span><span class="special">)</span><span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Constructs a devector with <code class="computeroutput">n</code> copies of <code class="computeroutput">value</code>, using the specified allocator.</p>
<p><span class="bold"><strong>Requires</strong></span>: <code class="computeroutput">T</code> shall be <a href="http://en.cppreference.com/w/cpp/concept/CopyInsertable" target="_top">CopyInsertable</a> into <code class="computeroutput">*this</code>.</p>
<p><span class="bold"><strong>Postcondition</strong></span>: <code class="computeroutput"><a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1abbd33a659cd6e7f3084f5635db5857c7">size()</a> == n</code>.</p>
<p><span class="bold"><strong>Exceptions</strong></span>: Strong exception guarantee.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Linear in <code class="computeroutput">n</code>. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> InputIterator<span class="special">&gt;</span> 
  <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1ad918fff9cd8bd0d4988c7899c624a505"></a><span class="identifier">devector</span><span class="special">(</span><span class="identifier">InputIterator</span> first<span class="special">,</span> <span class="identifier">InputIterator</span> last<span class="special">,</span> 
           <span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&amp;</span> allocator <span class="special">=</span> <span class="identifier">allocator_type</span><span class="special">(</span><span class="special">)</span> <span class="identifier">BOOST_CONTAINER_DOCIGN</span><span class="special">(</span><span class="identifier">BOOST_MOVE_I</span> <span class="keyword">typename</span> <span class="identifier">dtl</span><span class="special">::</span><span class="identifier">disable_if_or</span><span class="special">&lt;</span> <span class="keyword">void</span> <span class="identifier">BOOST_MOVE_I</span> <span class="identifier">dtl</span><span class="special">::</span><span class="identifier">is_convertible</span><span class="special">&lt;</span> <span class="identifier">InputIterator</span> <span class="identifier">BOOST_MOVE_I</span> <span class="identifier">size_type</span> <span class="special">&gt;</span> <span class="identifier">BOOST_MOVE_I</span> <span class="identifier">dtl</span><span class="special">::</span><span class="identifier">is_not_input_iterator</span><span class="special">&lt;</span> <span class="identifier">InputIterator</span> <span class="special">&gt;</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">type</span> <span class="special">*=</span><span class="number">0</span><span class="special">)</span><span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Constructs a devector equal to the range <code class="computeroutput">[first,last)</code>, using the specified allocator.</p>
<p><span class="bold"><strong>Requires</strong></span>: <code class="computeroutput">T</code> shall be <a href="http://en.cppreference.com/w/cpp/concept/EmplaceConstructible" target="_top">EmplaceConstructible</a> into <code class="computeroutput">*this</code> from <code class="computeroutput">*first</code>. If the specified iterator does not meet the forward iterator requirements, <code class="computeroutput">T</code> shall also be <a href="http://en.cppreference.com/w/cpp/concept/MoveInsertable" target="_top">MoveInsertable</a> into <code class="computeroutput">*this</code>.</p>
<p><span class="bold"><strong>Postcondition</strong></span>: `size() == boost::container::iterator_distance(first, last)</p>
<p><span class="bold"><strong>Exceptions</strong></span>: Strong exception guarantee.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Makes only <code class="computeroutput">N</code> calls to the copy constructor of <code class="computeroutput">T</code> (where <code class="computeroutput">N</code> is the distance between <code class="computeroutput">first</code> and <code class="computeroutput">last</code>), at most one allocation and no reallocations if iterators first and last are of forward, bidirectional, or random access categories. It makes <code class="computeroutput">O(N)</code> calls to the copy constructor of <code class="computeroutput">T</code> and `O(log(N)) reallocations if they are just input iterators.</p>
<p><span class="bold"><strong>Remarks</strong></span>: Each iterator in the range <code class="computeroutput">[first,last)</code> shall be dereferenced exactly once, unless an exception is thrown. </p>
</li>
<li class="listitem">
<pre class="literallayout"><a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1ad031d8b31bd004bd5aa6af452ad66788"></a><span class="identifier">devector</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1container_1_1devector.html" title="Class template devector">devector</a> <span class="special">&amp;</span> x<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Copy constructs a devector.</p>
<p><span class="bold"><strong>Requires</strong></span>: <code class="computeroutput">T</code> shall be <a href="http://en.cppreference.com/w/cpp/concept/CopyInsertable" target="_top">CopyInsertable</a> into <code class="computeroutput">*this</code>.</p>
<p><span class="bold"><strong>Postcondition</strong></span>: <code class="computeroutput">this-&gt;<a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1abbd33a659cd6e7f3084f5635db5857c7">size()</a> == x.size()</code>.</p>
<p><span class="bold"><strong>Exceptions</strong></span>: Strong exception guarantee.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Linear in the size of <code class="computeroutput">x</code>. </p>
</li>
<li class="listitem">
<pre class="literallayout"><a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a4e14d335e676ddf2480e7e72a3af3a78"></a><span class="identifier">devector</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1container_1_1devector.html" title="Class template devector">devector</a> <span class="special">&amp;</span> x<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&amp;</span> allocator<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Copy constructs a devector, using the specified allocator.</p>
<p><span class="bold"><strong>Requires</strong></span>: <code class="computeroutput">T</code> shall be <a href="http://en.cppreference.com/w/cpp/concept/CopyInsertable" target="_top">CopyInsertable</a> into <code class="computeroutput">*this</code>.</p>
<p><span class="bold"><strong>Postcondition</strong></span>: <code class="computeroutput">*this == x</code>.</p>
<p><span class="bold"><strong>Exceptions</strong></span>: Strong exception guarantee.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Linear in the size of <code class="computeroutput">x</code>. </p>
</li>
<li class="listitem">
<pre class="literallayout"><a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1ac52baabd771b9fafe0001b07d8c36459"></a><span class="identifier">devector</span><span class="special">(</span><a class="link" href="classboost_1_1container_1_1devector.html" title="Class template devector">devector</a> <span class="special">&amp;&amp;</span> rhs<span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Moves <code class="computeroutput">rhs</code>'s resources to <code class="computeroutput">*this</code>.</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing.</p>
<p><span class="bold"><strong>Postcondition</strong></span>: *this has the same value <code class="computeroutput">rhs</code> had before the operation. <code class="computeroutput">rhs</code> is left in an unspecified but valid state.</p>
<p><span class="bold"><strong>Exceptions</strong></span>: Strong exception guarantee if not <code class="computeroutput">noexcept</code>.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant. </p>
</li>
<li class="listitem">
<pre class="literallayout"><a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1ae97aa98ddd1d875f0cfa11ac4c2d5861"></a><span class="identifier">devector</span><span class="special">(</span><a class="link" href="classboost_1_1container_1_1devector.html" title="Class template devector">devector</a> <span class="special">&amp;&amp;</span> rhs<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&amp;</span> allocator<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Moves <code class="computeroutput">rhs</code>'s resources to <code class="computeroutput">*this</code>, using the specified allocator.</p>
<p><span class="bold"><strong>Throws</strong></span>: If allocation or T's move constructor throws.</p>
<p><span class="bold"><strong>Postcondition</strong></span>: *this has the same value <code class="computeroutput">rhs</code> had before the operation. <code class="computeroutput">rhs</code> is left in an unspecified but valid state.</p>
<p><span class="bold"><strong>Exceptions</strong></span>: Strong exception guarantee if not <code class="computeroutput">noexcept</code>.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Linear if allocator != rhs.get_allocator(), otherwise constant. </p>
</li>
<li class="listitem">
<pre class="literallayout"><a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1ad462a1bc34ef3b2d56f7f73f6fa83ca2"></a><span class="identifier">devector</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">initializer_list</span><span class="special">&lt;</span> <span class="identifier">T</span> <span class="special">&gt;</span> <span class="special">&amp;</span> il<span class="special">,</span> 
         <span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&amp;</span> allocator <span class="special">=</span> <span class="identifier">allocator_type</span><span class="special">(</span><span class="special">)</span><span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Equivalent to</strong></span>: <code class="computeroutput">devector(il.begin(), il.end(), allocator)</code>. </p>
</li>
<li class="listitem">
<pre class="literallayout"><a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a89da99f9b4c05b6111453075befda36a"></a><span class="special">~</span><span class="identifier">devector</span><span class="special">(</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Destroys the devector. All stored values are destroyed and used memory, if any, deallocated.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Linear in the size of <code class="computeroutput">*this</code>. </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="classboost_1_1container_1_1devector.html" title="Class template devector">devector</a> <span class="special">&amp;</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1ac57d8f2794d660554c18030f9ed1189f"></a><span class="keyword">operator</span><span class="special">=</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1container_1_1devector.html" title="Class template devector">devector</a> <span class="special">&amp;</span> rhs<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Copies elements of <code class="computeroutput">x</code> to <code class="computeroutput">*this</code>. Previously held elements get copy assigned to or destroyed.</p>
<p><span class="bold"><strong>Requires</strong></span>: <code class="computeroutput">T</code> shall be <a href="http://en.cppreference.com/w/cpp/concept/CopyInsertable" target="_top">CopyInsertable</a> into <code class="computeroutput">*this</code>.</p>
<p><span class="bold"><strong>Postcondition</strong></span>: <code class="computeroutput">this-&gt;<a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1abbd33a659cd6e7f3084f5635db5857c7">size()</a> == x.size()</code>, the elements of <code class="computeroutput">*this</code> are copies of elements in <code class="computeroutput">x</code> in the same order.</p>
<p><span class="bold"><strong>Returns</strong></span>: <code class="computeroutput">*this</code>.</p>
<p><span class="bold"><strong>Exceptions</strong></span>: Strong exception guarantee if <code class="computeroutput">T</code> is <code class="computeroutput">NothrowConstructible</code> and the allocator is allowed to be propagated (<a href="http://en.cppreference.com/w/cpp/memory/allocator_traits" target="_top">propagate_on_container_copy_assignment</a> is true), Basic exception guarantee otherwise.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Linear in the size of <code class="computeroutput">x</code> and <code class="computeroutput">*this</code>. </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="classboost_1_1container_1_1devector.html" title="Class template devector">devector</a> <span class="special">&amp;</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a473ac620aab75e275231716f35879fd3"></a><span class="keyword">operator</span><span class="special">=</span><span class="special">(</span><a class="link" href="classboost_1_1container_1_1devector.html" title="Class template devector">devector</a> <span class="special">&amp;&amp;</span> x<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Moves elements of <code class="computeroutput">x</code> to <code class="computeroutput">*this</code>. Previously held elements get move/copy assigned to or destroyed.</p>
<p><span class="bold"><strong>Requires</strong></span>: <code class="computeroutput">T</code> shall be <a href="http://en.cppreference.com/w/cpp/concept/MoveInsertable" target="_top">MoveInsertable</a> into <code class="computeroutput">*this</code>.</p>
<p><span class="bold"><strong>Postcondition</strong></span>: <code class="computeroutput">x</code> is left in an unspecified but valid state.</p>
<p><span class="bold"><strong>Returns</strong></span>: <code class="computeroutput">*this</code>.</p>
<p><span class="bold"><strong>Exceptions</strong></span>: Basic exception guarantee if not <code class="computeroutput">noexcept</code>.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant if allocator_traits_type:: propagate_on_container_move_assignment is true or this-&gt;get&gt;allocator() == x.get_allocator(). Linear otherwise. </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="classboost_1_1container_1_1devector.html" title="Class template devector">devector</a> <span class="special">&amp;</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a6bcd59101a1447222be8931ba6cc2a37"></a><span class="keyword">operator</span><span class="special">=</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">initializer_list</span><span class="special">&lt;</span> <span class="identifier">T</span> <span class="special">&gt;</span> il<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Copies elements of <code class="computeroutput">il</code> to <code class="computeroutput">*this</code>. Previously held elements get copy assigned to or destroyed.</p>
<p><span class="bold"><strong>Requires</strong></span>: <code class="computeroutput">T</code> shall be <a href="http://en.cppreference.com/w/cpp/concept/CopyInsertable" target="_top">CopyInsertable</a> into <code class="computeroutput">*this</code> and <a href="http://en.cppreference.com/w/cpp/concept/CopyAssignable" target="_top">CopyAssignable</a>.</p>
<p><span class="bold"><strong>Postcondition</strong></span>: <code class="computeroutput">this-&gt;<a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1abbd33a659cd6e7f3084f5635db5857c7">size()</a> == il.size()</code>, the elements of <code class="computeroutput">*this</code> are copies of elements in <code class="computeroutput">il</code> in the same order.</p>
<p><span class="bold"><strong>Exceptions</strong></span>: Strong exception guarantee if <code class="computeroutput">T</code> is nothrow copy assignable from <code class="computeroutput">T</code> and <code class="computeroutput">NothrowConstructible</code>, Basic exception guarantee otherwise.</p>
<p><span class="bold"><strong>Returns</strong></span>: <code class="computeroutput">*this</code>.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Linear in the size of <code class="computeroutput">il</code> and <code class="computeroutput">*this</code>. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> InputIterator<span class="special">&gt;</span> 
  <span class="keyword">void</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a2b6b2aa95a30ec320328c1f6c018310d"></a><span class="identifier">assign</span><span class="special">(</span><span class="identifier">InputIterator</span> first<span class="special">,</span> <span class="identifier">InputIterator</span> <span class="identifier">last</span>  BOOST_CONTAINER_DOCIGN<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Replaces elements of <code class="computeroutput">*this</code> with a copy of <code class="computeroutput">[first,last)</code>. Previously held elements get copy assigned to or destroyed.</p>
<p><span class="bold"><strong>Requires</strong></span>: <code class="computeroutput">T</code> shall be <a href="http://en.cppreference.com/w/cpp/concept/EmplaceConstructible" target="_top">EmplaceConstructible</a> from <code class="computeroutput">*first</code>. If the specified iterator does not meet the forward iterator requirements, <code class="computeroutput">T</code> shall be also <a href="http://en.cppreference.com/w/cpp/concept/MoveInsertable" target="_top">MoveInsertable</a> into <code class="computeroutput">*this</code>.</p>
<p><span class="bold"><strong>Precondition</strong></span>: <code class="computeroutput">first</code> and <code class="computeroutput">last</code> are not iterators into <code class="computeroutput">*this</code>.</p>
<p><span class="bold"><strong>Postcondition</strong></span>: <code class="computeroutput"><a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1abbd33a659cd6e7f3084f5635db5857c7">size()</a> == N</code>, where <code class="computeroutput">N</code> is the distance between <code class="computeroutput">first</code> and <code class="computeroutput">last</code>.</p>
<p><span class="bold"><strong>Exceptions</strong></span>: Strong exception guarantee if <code class="computeroutput">T</code> is nothrow copy assignable from <code class="computeroutput">*first</code> and <code class="computeroutput">NothrowConstructible</code>, Basic exception guarantee otherwise.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Linear in the distance between <code class="computeroutput">first</code> and <code class="computeroutput">last</code>. Makes a single reallocation at most if the iterators <code class="computeroutput">first</code> and <code class="computeroutput">last</code> are of forward, bidirectional, or random access categories. It makes <code class="computeroutput">O(log(N))</code> reallocations if they are just input iterators.</p>
<p><span class="bold"><strong>Remarks</strong></span>: Each iterator in the range <code class="computeroutput">[first,last)</code> shall be dereferenced exactly once, unless an exception is thrown. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">void</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a2067abdfea70b1c3974048a596dc5e11"></a><span class="identifier">assign</span><span class="special">(</span><span class="identifier">size_type</span> n<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">T</span> <span class="special">&amp;</span> u<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Replaces elements of <code class="computeroutput">*this</code> with <code class="computeroutput">n</code> copies of <code class="computeroutput">u</code>. Previously held elements get copy assigned to or destroyed.</p>
<p><span class="bold"><strong>Requires</strong></span>: <code class="computeroutput">T</code> shall be <a href="http://en.cppreference.com/w/cpp/concept/CopyInsertable" target="_top">CopyInsertable</a> into <code class="computeroutput">*this</code> and <a href="http://en.cppreference.com/w/cpp/concept/CopyAssignable" target="_top">CopyAssignable</a>.</p>
<p><span class="bold"><strong>Precondition</strong></span>: <code class="computeroutput">u</code> is not a reference into <code class="computeroutput">*this</code>.</p>
<p><span class="bold"><strong>Postcondition</strong></span>: <code class="computeroutput"><a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1abbd33a659cd6e7f3084f5635db5857c7">size()</a> == n</code> and the elements of <code class="computeroutput">*this</code> are copies of <code class="computeroutput">u</code>.</p>
<p><span class="bold"><strong>Exceptions</strong></span>: Strong exception guarantee if <code class="computeroutput">T</code> is nothrow copy assignable from <code class="computeroutput">u</code> and <code class="computeroutput">NothrowConstructible</code>, Basic exception guarantee otherwise.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Linear in <code class="computeroutput">n</code> and the size of <code class="computeroutput">*this</code>. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">void</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a2b765222438de2d2c196754b810b7d78"></a><span class="identifier">assign</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">initializer_list</span><span class="special">&lt;</span> <span class="identifier">T</span> <span class="special">&gt;</span> il<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Equivalent to</strong></span>: <code class="computeroutput">assign(il.begin(), il.end())</code>. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">allocator_type</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1adacfd55fcc429bc6f0dbe26dceeb490a"></a><span class="identifier">get_allocator</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Returns</strong></span>: A copy of the allocator associated with the container.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant. </p>
</li>
<li class="listitem"><pre class="literallayout"><span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&amp;</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a14cf3f970bd9ea1ae15f7bc2474ccbf0"></a><span class="identifier">get_stored_allocator</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="identifier">allocator_type</span> <span class="special">&amp;</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a0d602147234a84ad28df9783e30094c2"></a><span class="identifier">get_stored_allocator</span><span class="special">(</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre></li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">iterator</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1aeea85e1edbcae36ac717fb8b4539418e"></a><span class="identifier">begin</span><span class="special">(</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Returns</strong></span>: A iterator pointing to the first element in the devector, or the past the end iterator if the devector is empty.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">const_iterator</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a00270e0fec3b198973810d2fca4ba6c8"></a><span class="identifier">begin</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Returns</strong></span>: A constant iterator pointing to the first element in the devector, or the past the end iterator if the devector is empty.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">iterator</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1afc6dab064df380d9721614abc5b234ae"></a><span class="identifier">end</span><span class="special">(</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Returns</strong></span>: An iterator pointing past the last element of the container.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">const_iterator</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a0e3768a4af2de2568a62b73c8c1d9dd7"></a><span class="identifier">end</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Returns</strong></span>: A constant iterator pointing past the last element of the container.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">reverse_iterator</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1ad77c0f7b29a492b4b89be8da6c28e1ad"></a><span class="identifier">rbegin</span><span class="special">(</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Returns</strong></span>: A reverse iterator pointing to the first element in the reversed devector, or the reverse past the end iterator if the devector is empty.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">const_reverse_iterator</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a5a88e2b8e7c8a52a910796982e4e2f6a"></a><span class="identifier">rbegin</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Returns</strong></span>: A constant reverse iterator pointing to the first element in the reversed devector, or the reverse past the end iterator if the devector is empty.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">reverse_iterator</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a35eeb37c0ed621014e6c17f90072e7cb"></a><span class="identifier">rend</span><span class="special">(</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Returns</strong></span>: A reverse iterator pointing past the last element in the reversed container, or to the beginning of the reversed container if it's empty.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">const_reverse_iterator</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a87e22224bf64e5ada02e63e41d5b6fec"></a><span class="identifier">rend</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Returns</strong></span>: A constant reverse iterator pointing past the last element in the reversed container, or to the beginning of the reversed container if it's empty.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">const_iterator</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a7a388aad14738d4e9f42c945020b83ca"></a><span class="identifier">cbegin</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Returns</strong></span>: A constant iterator pointing to the first element in the devector, or the past the end iterator if the devector is empty.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">const_iterator</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1aec16514732d0be5a6b636c16978464f8"></a><span class="identifier">cend</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Returns</strong></span>: A constant iterator pointing past the last element of the container.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">const_reverse_iterator</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a09ab7f06941e95046533515792c8ef93"></a><span class="identifier">crbegin</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Returns</strong></span>: A constant reverse iterator pointing to the first element in the reversed devector, or the reverse past the end iterator if the devector is empty.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">const_reverse_iterator</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1ac029f709433662631c77f2c1cf1b2b86"></a><span class="identifier">crend</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Returns</strong></span>: A constant reverse iterator pointing past the last element in the reversed container, or to the beginning of the reversed container if it's empty.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">bool</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1adf610789591b2fce61ce24fdd8032308"></a><span class="identifier">empty</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Returns</strong></span>: True, if <code class="computeroutput"><a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1abbd33a659cd6e7f3084f5635db5857c7">size()</a> == 0</code>, false otherwise.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">size_type</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1abbd33a659cd6e7f3084f5635db5857c7"></a><span class="identifier">size</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Returns</strong></span>: The number of elements the devector contains.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">size_type</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a06ed6f401d8edb5065fcf0417c0f4b1a"></a><span class="identifier">max_size</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Returns</strong></span>: The maximum number of elements the devector could possibly hold.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">size_type</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a0c5eb747d982a401967213cdbfd4cf75"></a><span class="identifier">capacity</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Returns</strong></span>: The <span class="emphasis"><em>minimum</em></span> number of elements that can be inserted into devector using position-based insertions without requiring a reallocation. Note that, unlike in typical sequence containers like <code class="computeroutput">vector</code>, <code class="computeroutput"><a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a0c5eb747d982a401967213cdbfd4cf75">capacity()</a></code>, <code class="computeroutput"><a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a0c5eb747d982a401967213cdbfd4cf75">capacity()</a></code> can be smaller than <code class="computeroutput"><a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1abbd33a659cd6e7f3084f5635db5857c7">size()</a></code>. This can happen if a user inserts elements in a particular way (usually inserting at front up to <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1adc07fd187fc51b2535e6929573a71274">front_free_capacity()</a> and at back up to <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a7ed0d23190215ed4aba56a462e9f3183">back_free_capacity()</a>).</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">size_type</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1adc07fd187fc51b2535e6929573a71274"></a><span class="identifier">front_free_capacity</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Returns</strong></span>: The total number of elements that can be pushed to the front of the devector without requiring reallocation.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">size_type</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a7ed0d23190215ed4aba56a462e9f3183"></a><span class="identifier">back_free_capacity</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Returns</strong></span>: The total number of elements that can be pushed to the back of the devector without requiring reallocation.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">void</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a5d6affe9018dba247da1d1d49b188900"></a><span class="identifier">resize</span><span class="special">(</span><span class="identifier">size_type</span> sz<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: If <code class="computeroutput">sz</code> is greater than the size of <code class="computeroutput">*this</code>, additional value-initialized elements are inserted. Invalidates iterators if reallocation is needed. If <code class="computeroutput">sz</code> is smaller than than the size of <code class="computeroutput">*this</code>, elements are erased from the extremes.</p>
<p><span class="bold"><strong>Requires</strong></span>: T shall be <a href="http://en.cppreference.com/w/cpp/concept/MoveInsertable" target="_top">MoveInsertable</a> into *this and <a href="http://en.cppreference.com/w/cpp/concept/DefaultConstructible" target="_top">DefaultConstructible</a>.</p>
<p><span class="bold"><strong>Postcondition</strong></span>: <code class="computeroutput">sz == <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1abbd33a659cd6e7f3084f5635db5857c7">size()</a></code>.</p>
<p><span class="bold"><strong>Exceptions</strong></span>: Strong exception guarantee.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Linear in the size of <code class="computeroutput">*this</code> and <code class="computeroutput">sz</code>. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">void</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1ad9568a61414d0e9ddc158928bafde560"></a><span class="identifier">resize</span><span class="special">(</span><span class="identifier">size_type</span> sz<span class="special">,</span> <a class="link" href="structboost_1_1container_1_1default__init__t.html" title="Struct default_init_t">default_init_t</a><span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Same as resize(sz) but creates default-initialized value-initialized. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">void</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1ae7c6f2927e08d6c56ffa8bb2818bb030"></a><span class="identifier">resize</span><span class="special">(</span><span class="identifier">size_type</span> sz<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">T</span> <span class="special">&amp;</span> c<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: If <code class="computeroutput">sz</code> is greater than the size of <code class="computeroutput">*this</code>, copies of <code class="computeroutput">c</code> are inserted at extremes. If <code class="computeroutput">sz</code> is smaller than than the size of <code class="computeroutput">*this</code>, elements are popped from the extremes.</p>
<p><span class="bold"><strong>Postcondition</strong></span>: <code class="computeroutput">sz == <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1abbd33a659cd6e7f3084f5635db5857c7">size()</a></code>.</p>
<p><span class="bold"><strong>Requires</strong></span>: <code class="computeroutput">T</code> shall be <a href="http://en.cppreference.com/w/cpp/concept/CopyInsertable" target="_top">CopyInsertable</a> into <code class="computeroutput">*this</code>.</p>
<p><span class="bold"><strong>Exceptions</strong></span>: Strong exception guarantee.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Linear in the size of <code class="computeroutput">*this</code> and <code class="computeroutput">sz</code>. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">void</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a169f1ba456f8f4bf94bf7976355ab975"></a><span class="identifier">resize_front</span><span class="special">(</span><span class="identifier">size_type</span> sz<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: If <code class="computeroutput">sz</code> is greater than the size of <code class="computeroutput">*this</code>, additional value-initialized elements are inserted to the front. Invalidates iterators if reallocation is needed. If <code class="computeroutput">sz</code> is smaller than than the size of <code class="computeroutput">*this</code>, elements are popped from the front.</p>
<p><span class="bold"><strong>Requires</strong></span>: T shall be <a href="http://en.cppreference.com/w/cpp/concept/MoveInsertable" target="_top">MoveInsertable</a> into *this and <a href="http://en.cppreference.com/w/cpp/concept/DefaultConstructible" target="_top">DefaultConstructible</a>.</p>
<p><span class="bold"><strong>Postcondition</strong></span>: <code class="computeroutput">sz == <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1abbd33a659cd6e7f3084f5635db5857c7">size()</a></code>.</p>
<p><span class="bold"><strong>Exceptions</strong></span>: Strong exception guarantee.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Linear in the size of <code class="computeroutput">*this</code> and <code class="computeroutput">sz</code>. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">void</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1af275beb266ee7a15905cbfea000edfc3"></a><span class="identifier">resize_front</span><span class="special">(</span><span class="identifier">size_type</span> sz<span class="special">,</span> <a class="link" href="structboost_1_1container_1_1default__init__t.html" title="Struct default_init_t">default_init_t</a><span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: If <code class="computeroutput">sz</code> is greater than the size of <code class="computeroutput">*this</code>, additional value-initialized elements are inserted to the front. Invalidates iterators if reallocation is needed. If <code class="computeroutput">sz</code> is smaller than than the size of <code class="computeroutput">*this</code>, elements are popped from the front.</p>
<p><span class="bold"><strong>Requires</strong></span>: T shall be <a href="http://en.cppreference.com/w/cpp/concept/MoveInsertable" target="_top">MoveInsertable</a> into *this and default_initializable.</p>
<p><span class="bold"><strong>Postcondition</strong></span>: <code class="computeroutput">sz == <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1abbd33a659cd6e7f3084f5635db5857c7">size()</a></code>.</p>
<p><span class="bold"><strong>Exceptions</strong></span>: Strong exception guarantee.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Linear in the size of <code class="computeroutput">*this</code> and <code class="computeroutput">sz</code>. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">void</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a750dc1522e1177176ddc211ac4f149a9"></a><span class="identifier">resize_front</span><span class="special">(</span><span class="identifier">size_type</span> sz<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">T</span> <span class="special">&amp;</span> c<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: If <code class="computeroutput">sz</code> is greater than the size of <code class="computeroutput">*this</code>, copies of <code class="computeroutput">c</code> are inserted to the front. Invalidates iterators if reallocation is needed. If <code class="computeroutput">sz</code> is smaller than than the size of <code class="computeroutput">*this</code>, elements are popped from the front.</p>
<p><span class="bold"><strong>Postcondition</strong></span>: <code class="computeroutput">sz == <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1abbd33a659cd6e7f3084f5635db5857c7">size()</a></code>.</p>
<p><span class="bold"><strong>Requires</strong></span>: <code class="computeroutput">T</code> shall be <a href="http://en.cppreference.com/w/cpp/concept/CopyInsertable" target="_top">CopyInsertable</a> into <code class="computeroutput">*this</code>.</p>
<p><span class="bold"><strong>Exceptions</strong></span>: Strong exception guarantee.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Linear in the size of <code class="computeroutput">*this</code> and <code class="computeroutput">sz</code>. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">void</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1ac526c5f89cd25d1e07ce20c687e0f44e"></a><span class="identifier">resize_back</span><span class="special">(</span><span class="identifier">size_type</span> sz<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: If <code class="computeroutput">sz</code> is greater than the size of <code class="computeroutput">*this</code>, additional value-initialized elements are inserted to the back. Invalidates iterators if reallocation is needed. If <code class="computeroutput">sz</code> is smaller than than the size of <code class="computeroutput">*this</code>, elements are popped from the back.</p>
<p><span class="bold"><strong>Requires</strong></span>: T shall be <a href="http://en.cppreference.com/w/cpp/concept/MoveInsertable" target="_top">MoveInsertable</a> into *this and <a href="http://en.cppreference.com/w/cpp/concept/DefaultConstructible" target="_top">DefaultConstructible</a>.</p>
<p><span class="bold"><strong>Postcondition</strong></span>: <code class="computeroutput">sz == <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1abbd33a659cd6e7f3084f5635db5857c7">size()</a></code>.</p>
<p><span class="bold"><strong>Exceptions</strong></span>: Strong exception guarantee.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Linear in the size of <code class="computeroutput">*this</code> and <code class="computeroutput">sz</code>. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">void</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a19a099d36e7dbd420245062d12eace25"></a><span class="identifier">resize_back</span><span class="special">(</span><span class="identifier">size_type</span> sz<span class="special">,</span> <a class="link" href="structboost_1_1container_1_1default__init__t.html" title="Struct default_init_t">default_init_t</a><span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: If <code class="computeroutput">sz</code> is greater than the size of <code class="computeroutput">*this</code>, additional value-initialized elements are inserted to the back. Invalidates iterators if reallocation is needed. If <code class="computeroutput">sz</code> is smaller than than the size of <code class="computeroutput">*this</code>, elements are popped from the back.</p>
<p><span class="bold"><strong>Requires</strong></span>: T shall be <a href="http://en.cppreference.com/w/cpp/concept/MoveInsertable" target="_top">MoveInsertable</a> into *this and default initializable.</p>
<p><span class="bold"><strong>Postcondition</strong></span>: <code class="computeroutput">sz == <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1abbd33a659cd6e7f3084f5635db5857c7">size()</a></code>.</p>
<p><span class="bold"><strong>Exceptions</strong></span>: Strong exception guarantee.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Linear in the size of <code class="computeroutput">*this</code> and <code class="computeroutput">sz</code>. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">void</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a0593021fae7e4f46f63a5225f2e895dc"></a><span class="identifier">resize_back</span><span class="special">(</span><span class="identifier">size_type</span> sz<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">T</span> <span class="special">&amp;</span> c<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: If <code class="computeroutput">sz</code> is greater than the size of <code class="computeroutput">*this</code>, copies of <code class="computeroutput">c</code> are inserted to the back. If <code class="computeroutput">sz</code> is smaller than than the size of <code class="computeroutput">*this</code>, elements are popped from the back.</p>
<p><span class="bold"><strong>Postcondition</strong></span>: <code class="computeroutput">sz == <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1abbd33a659cd6e7f3084f5635db5857c7">size()</a></code>.</p>
<p><span class="bold"><strong>Requires</strong></span>: <code class="computeroutput">T</code> shall be <a href="http://en.cppreference.com/w/cpp/concept/CopyInsertable" target="_top">CopyInsertable</a> into <code class="computeroutput">*this</code>.</p>
<p><span class="bold"><strong>Exceptions</strong></span>: Strong exception guarantee.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Linear in the size of <code class="computeroutput">*this</code> and <code class="computeroutput">sz</code>. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">void</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a956f41cce973d180f810349cd5ee1579"></a><span class="identifier">reserve</span><span class="special">(</span><span class="identifier">size_type</span> new_capacity<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Ensures that at least <code class="computeroutput">n</code> elements can be inserted without requiring reallocation, where <code class="computeroutput">n</code> is <code class="computeroutput">new_capacity - <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1abbd33a659cd6e7f3084f5635db5857c7">size()</a></code>, if <code class="computeroutput">n</code> is positive. Otherwise, there are no effects. Invalidates iterators if reallocation is needed.</p>
<p><span class="bold"><strong>Requires</strong></span>: <code class="computeroutput">T</code> shall be <a href="http://en.cppreference.com/w/cpp/concept/MoveInsertable" target="_top">MoveInsertable</a> into <code class="computeroutput">*this</code>.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Linear in the size of *this.</p>
<p><span class="bold"><strong>Exceptions</strong></span>: Strong exception guarantee.</p>
<p><span class="bold"><strong>Throws</strong></span>: length_error if <code class="computeroutput">new_capacity &gt; <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a06ed6f401d8edb5065fcf0417c0f4b1a">max_size()</a></code>. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">void</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1aef3ea5145d1aa523234bc2418bb354f1"></a><span class="identifier">reserve_front</span><span class="special">(</span><span class="identifier">size_type</span> new_capacity<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Ensures that <code class="computeroutput">n</code> elements can be pushed to the front without requiring reallocation, where <code class="computeroutput">n</code> is <code class="computeroutput">new_capacity - <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1abbd33a659cd6e7f3084f5635db5857c7">size()</a></code>, if <code class="computeroutput">n</code> is positive. Otherwise, there are no effects. Invalidates iterators if reallocation is needed.</p>
<p><span class="bold"><strong>Requires</strong></span>: <code class="computeroutput">T</code> shall be <a href="http://en.cppreference.com/w/cpp/concept/MoveInsertable" target="_top">MoveInsertable</a> into <code class="computeroutput">*this</code>.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Linear in the size of *this.</p>
<p><span class="bold"><strong>Exceptions</strong></span>: Strong exception guarantee.</p>
<p><span class="bold"><strong>Throws</strong></span>: <code class="computeroutput">length_error</code> if <code class="computeroutput">new_capacity &gt; <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a06ed6f401d8edb5065fcf0417c0f4b1a">max_size()</a></code>. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">void</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a83ad487f1eec3ac9673c381d82931952"></a><span class="identifier">reserve_back</span><span class="special">(</span><span class="identifier">size_type</span> new_capacity<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Ensures that <code class="computeroutput">n</code> elements can be pushed to the back without requiring reallocation, where <code class="computeroutput">n</code> is <code class="computeroutput">new_capacity - <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1abbd33a659cd6e7f3084f5635db5857c7">size()</a></code>, if <code class="computeroutput">n</code> is positive. Otherwise, there are no effects. Invalidates iterators if reallocation is needed.</p>
<p><span class="bold"><strong>Requires</strong></span>: <code class="computeroutput">T</code> shall be <a href="http://en.cppreference.com/w/cpp/concept/MoveInsertable" target="_top">MoveInsertable</a> into <code class="computeroutput">*this</code>.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Linear in the size of *this.</p>
<p><span class="bold"><strong>Exceptions</strong></span>: Strong exception guarantee.</p>
<p><span class="bold"><strong>Throws</strong></span>: length_error if <code class="computeroutput">new_capacity &gt; <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a06ed6f401d8edb5065fcf0417c0f4b1a">max_size()</a></code>. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">void</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a550e9ec07c1763f684dabf7f2b1bf2bb"></a><span class="identifier">shrink_to_fit</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Reduces <code class="computeroutput"><a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a0c5eb747d982a401967213cdbfd4cf75">capacity()</a></code> to <code class="computeroutput"><a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1abbd33a659cd6e7f3084f5635db5857c7">size()</a></code>. Invalidates iterators.</p>
<p><span class="bold"><strong>Requires</strong></span>: <code class="computeroutput">T</code> shall be <a href="http://en.cppreference.com/w/cpp/concept/MoveInsertable" target="_top">MoveInsertable</a> into <code class="computeroutput">*this</code>.</p>
<p><span class="bold"><strong>Exceptions</strong></span>: Strong exception guarantee.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Linear in the size of *this. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">reference</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a5dd42e9dec56e901168ebcab7665363e"></a><span class="keyword">operator</span><span class="special">[</span><span class="special">]</span><span class="special">(</span><span class="identifier">size_type</span> n<span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Returns</strong></span>: A reference to the <code class="computeroutput">n</code>th element in the devector.</p>
<p><span class="bold"><strong>Precondition</strong></span>: <code class="computeroutput">n &lt; <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1abbd33a659cd6e7f3084f5635db5857c7">size()</a></code>.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">const_reference</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1ab0ca69228482c4bd1b047e0c160b6e79"></a><span class="keyword">operator</span><span class="special">[</span><span class="special">]</span><span class="special">(</span><span class="identifier">size_type</span> n<span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Returns</strong></span>: A constant reference to the <code class="computeroutput">n</code>th element in the devector.</p>
<p><span class="bold"><strong>Precondition</strong></span>: <code class="computeroutput">n &lt; <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1abbd33a659cd6e7f3084f5635db5857c7">size()</a></code>.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">iterator</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1adc945b01042d7a8afca277174e29954e"></a><span class="identifier">nth</span><span class="special">(</span><span class="identifier">size_type</span> n<span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Requires</strong></span>: <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1abbd33a659cd6e7f3084f5635db5857c7">size()</a> &gt;= n.</p>
<p><span class="bold"><strong>Effects</strong></span>: Returns an iterator to the nth element from the beginning of the container. Returns <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1afc6dab064df380d9721614abc5b234ae">end()</a> if n == <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1abbd33a659cd6e7f3084f5635db5857c7">size()</a>.</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant.</p>
<p><span class="bold"><strong>Note</strong></span>: Non-standard extension </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">const_iterator</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a12bfb28de44ae9bcbc15f6feb4430938"></a><span class="identifier">nth</span><span class="special">(</span><span class="identifier">size_type</span> n<span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Requires</strong></span>: <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1abbd33a659cd6e7f3084f5635db5857c7">size()</a> &gt;= n.</p>
<p><span class="bold"><strong>Effects</strong></span>: Returns a const_iterator to the nth element from the beginning of the container. Returns <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1afc6dab064df380d9721614abc5b234ae">end()</a> if n == <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1abbd33a659cd6e7f3084f5635db5857c7">size()</a>.</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant.</p>
<p><span class="bold"><strong>Note</strong></span>: Non-standard extension </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">size_type</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a243298ba7d0dd4a4301806538fb4df18"></a><span class="identifier">index_of</span><span class="special">(</span><span class="identifier">iterator</span> p<span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Requires</strong></span>: <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1aeea85e1edbcae36ac717fb8b4539418e">begin()</a> &lt;= p &lt;= <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1afc6dab064df380d9721614abc5b234ae">end()</a>.</p>
<p><span class="bold"><strong>Effects</strong></span>: Returns the index of the element pointed by p and <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1abbd33a659cd6e7f3084f5635db5857c7">size()</a> if p == <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1afc6dab064df380d9721614abc5b234ae">end()</a>.</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant.</p>
<p><span class="bold"><strong>Note</strong></span>: Non-standard extension </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">size_type</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1ab42917265270a462ca95d6bc2e0be66a"></a><span class="identifier">index_of</span><span class="special">(</span><span class="identifier">const_iterator</span> p<span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Requires</strong></span>: <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1aeea85e1edbcae36ac717fb8b4539418e">begin()</a> &lt;= p &lt;= <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1afc6dab064df380d9721614abc5b234ae">end()</a>.</p>
<p><span class="bold"><strong>Effects</strong></span>: Returns the index of the element pointed by p and <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1abbd33a659cd6e7f3084f5635db5857c7">size()</a> if p == <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1afc6dab064df380d9721614abc5b234ae">end()</a>.</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant.</p>
<p><span class="bold"><strong>Note</strong></span>: Non-standard extension </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">reference</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1ae74249ed8aaaf83e492483c837468258"></a><span class="identifier">at</span><span class="special">(</span><span class="identifier">size_type</span> n<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Returns</strong></span>: A reference to the <code class="computeroutput">n</code>th element in the devector.</p>
<p><span class="bold"><strong>Throws</strong></span>: <code class="computeroutput">out_of_range</code>, if <code class="computeroutput">n &gt;= <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1abbd33a659cd6e7f3084f5635db5857c7">size()</a></code>.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">const_reference</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a4bb25cb36835ecdbc2a659b081e03846"></a><span class="identifier">at</span><span class="special">(</span><span class="identifier">size_type</span> n<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Returns</strong></span>: A constant reference to the <code class="computeroutput">n</code>th element in the devector.</p>
<p><span class="bold"><strong>Throws</strong></span>: <code class="computeroutput">out_of_range</code>, if <code class="computeroutput">n &gt;= <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1abbd33a659cd6e7f3084f5635db5857c7">size()</a></code>.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">reference</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a156e479e8ed1fb75f8d81da0684e6353"></a><span class="identifier">front</span><span class="special">(</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Returns</strong></span>: A reference to the first element in the devector.</p>
<p><span class="bold"><strong>Precondition</strong></span>: <code class="computeroutput">!empty()</code>.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">const_reference</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1adbf4b29887bf5e305ec54af3bb67cb5b"></a><span class="identifier">front</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Returns</strong></span>: A constant reference to the first element in the devector.</p>
<p><span class="bold"><strong>Precondition</strong></span>: <code class="computeroutput">!empty()</code>.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">reference</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1acd4ce8a4d21edc8e4f4bec0a200a8de3"></a><span class="identifier">back</span><span class="special">(</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Returns</strong></span>: A reference to the last element in the devector.</p>
<p><span class="bold"><strong>Precondition</strong></span>: <code class="computeroutput">!empty()</code>.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">const_reference</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a384ad8336e9a445f63bd56c62672eda1"></a><span class="identifier">back</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Returns</strong></span>: A constant reference to the last element in the devector.</p>
<p><span class="bold"><strong>Precondition</strong></span>: <code class="computeroutput">!empty()</code>.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">T</span> <span class="special">*</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a2ffcfe63cc86ab7bf7b421530acdcc46"></a><span class="identifier">data</span><span class="special">(</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Returns</strong></span>: A pointer to the underlying array serving as element storage. The range <code class="computeroutput">[<a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a2ffcfe63cc86ab7bf7b421530acdcc46">data()</a>; <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a2ffcfe63cc86ab7bf7b421530acdcc46">data()</a> + <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1abbd33a659cd6e7f3084f5635db5857c7">size()</a>)</code> is always valid. For a non-empty devector, <code class="computeroutput"><a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a2ffcfe63cc86ab7bf7b421530acdcc46">data()</a> == &amp;<a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a156e479e8ed1fb75f8d81da0684e6353">front()</a></code>.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">const</span> <span class="identifier">T</span> <span class="special">*</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1ab8967452e2fcf6c0f5011e3acf460947"></a><span class="identifier">data</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Returns</strong></span>: A constant pointer to the underlying array serving as element storage. The range <code class="computeroutput">[<a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a2ffcfe63cc86ab7bf7b421530acdcc46">data()</a>; <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a2ffcfe63cc86ab7bf7b421530acdcc46">data()</a> + <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1abbd33a659cd6e7f3084f5635db5857c7">size()</a>)</code> is always valid. For a non-empty devector, <code class="computeroutput"><a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a2ffcfe63cc86ab7bf7b421530acdcc46">data()</a> == &amp;<a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a156e479e8ed1fb75f8d81da0684e6353">front()</a></code>.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">class</span><span class="special">...</span> Args<span class="special">&gt;</span> <span class="identifier">reference</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a9794282393be1a3ae5c4b2c8d8f60c21"></a><span class="identifier">emplace_front</span><span class="special">(</span><span class="identifier">Args</span> <span class="special">&amp;&amp;</span><span class="special">...</span> args<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Pushes a new element to the front of the devector. The element is constructed in-place, using the perfect forwarded <code class="computeroutput">args</code> as constructor arguments. Invalidates iterators if reallocation is needed. (<code class="computeroutput"><a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1adc07fd187fc51b2535e6929573a71274">front_free_capacity()</a> == 0</code>)</p>
<p><span class="bold"><strong>Requires</strong></span>: <code class="computeroutput">T</code> shall be <a href="http://en.cppreference.com/w/cpp/concept/EmplaceConstructible" target="_top">EmplaceConstructible</a> from <code class="computeroutput">args</code> and <a href="http://en.cppreference.com/w/cpp/concept/MoveInsertable" target="_top">MoveInsertable</a> into <code class="computeroutput">*this</code>.</p>
<p><span class="bold"><strong>Exceptions</strong></span>: Strong exception guarantee.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Amortized constant in the size of <code class="computeroutput">*this</code>. (Constant, if <code class="computeroutput"><a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1adc07fd187fc51b2535e6929573a71274">front_free_capacity()</a> &gt; 0</code>) </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">void</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a2ca8bd113c26da1f78507e29795e00c8"></a><span class="identifier">push_front</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">T</span> <span class="special">&amp;</span> x<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Pushes the copy of <code class="computeroutput">x</code> to the front of the devector. Invalidates iterators if reallocation is needed. (<code class="computeroutput"><a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1adc07fd187fc51b2535e6929573a71274">front_free_capacity()</a> == 0</code>)</p>
<p><span class="bold"><strong>Requires</strong></span>: <code class="computeroutput">T</code> shall be <a href="http://en.cppreference.com/w/cpp/concept/CopyInsertable" target="_top">CopyInsertable</a> into <code class="computeroutput">*this</code>.</p>
<p><span class="bold"><strong>Exceptions</strong></span>: Strong exception guarantee.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Amortized constant in the size of <code class="computeroutput">*this</code>. (Constant, if <code class="computeroutput"><a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1adc07fd187fc51b2535e6929573a71274">front_free_capacity()</a> &gt; 0</code>) </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">void</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1aa20792ad3ab7bd75de89b3a72e934005"></a><span class="identifier">push_front</span><span class="special">(</span><span class="identifier">T</span> <span class="special">&amp;&amp;</span> x<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Move constructs a new element at the front of the devector using <code class="computeroutput">x</code>. Invalidates iterators if reallocation is needed. (<code class="computeroutput"><a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1adc07fd187fc51b2535e6929573a71274">front_free_capacity()</a> == 0</code>)</p>
<p><span class="bold"><strong>Requires</strong></span>: <code class="computeroutput">T</code> shall be <a href="http://en.cppreference.com/w/cpp/concept/MoveInsertable" target="_top">MoveInsertable</a> into <code class="computeroutput">*this</code>.</p>
<p><span class="bold"><strong>Exceptions</strong></span>: Strong exception guarantee, not regarding the state of <code class="computeroutput">x</code>.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Amortized constant in the size of <code class="computeroutput">*this</code>. (Constant, if <code class="computeroutput"><a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1adc07fd187fc51b2535e6929573a71274">front_free_capacity()</a> &gt; 0</code>) </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">void</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a9ef1e8e5f86b29d71fbecee11607e905"></a><span class="identifier">pop_front</span><span class="special">(</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Removes the first element of <code class="computeroutput">*this</code>.</p>
<p><span class="bold"><strong>Precondition</strong></span>: <code class="computeroutput">!empty()</code>.</p>
<p><span class="bold"><strong>Postcondition</strong></span>: <code class="computeroutput"><a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1adc07fd187fc51b2535e6929573a71274">front_free_capacity()</a></code> is incremented by 1.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">class</span><span class="special">...</span> Args<span class="special">&gt;</span> <span class="identifier">reference</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1ac2945492702eef991855b84cef57c6a1"></a><span class="identifier">emplace_back</span><span class="special">(</span><span class="identifier">Args</span> <span class="special">&amp;&amp;</span><span class="special">...</span> args<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Pushes a new element to the back of the devector. The element is constructed in-place, using the perfect forwarded <code class="computeroutput">args</code> as constructor arguments. Invalidates iterators if reallocation is needed. (<code class="computeroutput"><a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a7ed0d23190215ed4aba56a462e9f3183">back_free_capacity()</a> == 0</code>)</p>
<p><span class="bold"><strong>Requires</strong></span>: <code class="computeroutput">T</code> shall be <a href="http://en.cppreference.com/w/cpp/concept/EmplaceConstructible" target="_top">EmplaceConstructible</a> from <code class="computeroutput">args</code> and <a href="http://en.cppreference.com/w/cpp/concept/MoveInsertable" target="_top">MoveInsertable</a> into <code class="computeroutput">*this</code>, and <a href="http://en.cppreference.com/w/cpp/concept/MoveAssignable" target="_top">MoveAssignable</a>.</p>
<p><span class="bold"><strong>Exceptions</strong></span>: Strong exception guarantee.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Amortized constant in the size of <code class="computeroutput">*this</code>. (Constant, if <code class="computeroutput"><a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a7ed0d23190215ed4aba56a462e9f3183">back_free_capacity()</a> &gt; 0</code>) </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">void</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1af8bbffcc27bb4fb2aeb15a8ff73fc858"></a><span class="identifier">push_back</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">T</span> <span class="special">&amp;</span> x<span class="special">)</span><span class="special">;</span></pre>defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) || defined(BOOST_CONTAINER_DOXYGEN_INVOKED) <p><span class="bold"><strong>Effects</strong></span>: Pushes the copy of <code class="computeroutput">x</code> to the back of the devector. Invalidates iterators if reallocation is needed. (<code class="computeroutput"><a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a7ed0d23190215ed4aba56a462e9f3183">back_free_capacity()</a> == 0</code>)</p>
<p><span class="bold"><strong>Requires</strong></span>: <code class="computeroutput">T</code> shall be <a href="http://en.cppreference.com/w/cpp/concept/CopyInsertable" target="_top">CopyInsertable</a> into <code class="computeroutput">*this</code>.</p>
<p><span class="bold"><strong>Exceptions</strong></span>: Strong exception guarantee.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Amortized constant in the size of <code class="computeroutput">*this</code>. (Constant, if <code class="computeroutput"><a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a7ed0d23190215ed4aba56a462e9f3183">back_free_capacity()</a> &gt; 0</code>) </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">void</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a419765be9eebda00229638365e4df240"></a><span class="identifier">push_back</span><span class="special">(</span><span class="identifier">T</span> <span class="special">&amp;&amp;</span> x<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Move constructs a new element at the back of the devector using <code class="computeroutput">x</code>. Invalidates iterators if reallocation is needed. (<code class="computeroutput"><a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a7ed0d23190215ed4aba56a462e9f3183">back_free_capacity()</a> == 0</code>)</p>
<p><span class="bold"><strong>Requires</strong></span>: <code class="computeroutput">T</code> shall be <a href="http://en.cppreference.com/w/cpp/concept/MoveInsertable" target="_top">MoveInsertable</a> into <code class="computeroutput">*this</code>.</p>
<p><span class="bold"><strong>Exceptions</strong></span>: Strong exception guarantee, not regarding the state of <code class="computeroutput">x</code>.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Amortized constant in the size of <code class="computeroutput">*this</code>. (Constant, if <code class="computeroutput"><a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a7ed0d23190215ed4aba56a462e9f3183">back_free_capacity()</a> &gt; 0</code>) </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">void</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1ada4200afe2aa832a7a5af88749d894da"></a><span class="identifier">pop_back</span><span class="special">(</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Removes the last element of <code class="computeroutput">*this</code>.</p>
<p><span class="bold"><strong>Precondition</strong></span>: <code class="computeroutput">!empty()</code>.</p>
<p><span class="bold"><strong>Postcondition</strong></span>: <code class="computeroutput"><a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a7ed0d23190215ed4aba56a462e9f3183">back_free_capacity()</a></code> is incremented by 1.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">class</span><span class="special">...</span> Args<span class="special">&gt;</span> 
  <span class="identifier">iterator</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a7787efe80208807126a351990490f4de"></a><span class="identifier">emplace</span><span class="special">(</span><span class="identifier">const_iterator</span> position<span class="special">,</span> <span class="identifier">Args</span> <span class="special">&amp;&amp;</span><span class="special">...</span> args<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Constructs a new element before the element pointed by <code class="computeroutput">position</code>. The element is constructed in-place, using the perfect forwarded <code class="computeroutput">args</code> as constructor arguments. Invalidates iterators if reallocation is needed.</p>
<p><span class="bold"><strong>Requires</strong></span>: <code class="computeroutput">T</code> shall be <a href="http://en.cppreference.com/w/cpp/concept/EmplaceConstructible" target="_top">EmplaceConstructible</a>, and <a href="http://en.cppreference.com/w/cpp/concept/MoveInsertable" target="_top">MoveInsertable</a> into <code class="computeroutput">*this</code>, and <a href="http://en.cppreference.com/w/cpp/concept/MoveAssignable" target="_top">MoveAssignable</a>.</p>
<p><span class="bold"><strong>Returns</strong></span>: Iterator pointing to the newly constructed element.</p>
<p><span class="bold"><strong>Exceptions</strong></span>: Strong exception guarantee if <code class="computeroutput">T</code> is <code class="computeroutput">NothrowConstructible</code> and <code class="computeroutput">NothrowAssignable</code>, Basic exception guarantee otherwise.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Linear in the size of <code class="computeroutput">*this</code>. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">iterator</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a9407091493f3a47a2367e0cc31dcf2f6"></a><span class="identifier">insert</span><span class="special">(</span><span class="identifier">const_iterator</span> position<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">T</span> <span class="special">&amp;</span> x<span class="special">)</span><span class="special">;</span></pre>defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) || defined(BOOST_CONTAINER_DOXYGEN_INVOKED) <p><span class="bold"><strong>Effects</strong></span>: Copy constructs a new element before the element pointed by <code class="computeroutput">position</code>, using <code class="computeroutput">x</code> as constructor argument. Invalidates iterators if reallocation is needed.</p>
<p><span class="bold"><strong>Requires</strong></span>: <code class="computeroutput">T</code> shall be <a href="http://en.cppreference.com/w/cpp/concept/CopyInsertable" target="_top">CopyInsertable</a> into <code class="computeroutput">*this</code> and and <a href="http://en.cppreference.com/w/cpp/concept/CopyAssignable" target="_top">CopyAssignable</a>.</p>
<p><span class="bold"><strong>Returns</strong></span>: Iterator pointing to the newly constructed element.</p>
<p><span class="bold"><strong>Exceptions</strong></span>: Strong exception guarantee if <code class="computeroutput">T</code> is <code class="computeroutput">NothrowConstructible</code> and <code class="computeroutput">NothrowAssignable</code>, Basic exception guarantee otherwise.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Linear in the size of <code class="computeroutput">*this</code>. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">iterator</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a176b71342827dcdd0192031da8cbc81c"></a><span class="identifier">insert</span><span class="special">(</span><span class="identifier">const_iterator</span> position<span class="special">,</span> <span class="identifier">T</span> <span class="special">&amp;&amp;</span> x<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Move constructs a new element before the element pointed by <code class="computeroutput">position</code>, using <code class="computeroutput">x</code> as constructor argument. Invalidates iterators if reallocation is needed.</p>
<p><span class="bold"><strong>Requires</strong></span>: <code class="computeroutput">T</code> shall be <a href="http://en.cppreference.com/w/cpp/concept/MoveInsertable" target="_top">MoveInsertable</a> into <code class="computeroutput">*this</code> and and <a href="http://en.cppreference.com/w/cpp/concept/CopyAssignable" target="_top">CopyAssignable</a>.</p>
<p><span class="bold"><strong>Returns</strong></span>: Iterator pointing to the newly constructed element.</p>
<p><span class="bold"><strong>Exceptions</strong></span>: Strong exception guarantee if <code class="computeroutput">T</code> is <code class="computeroutput">NothrowConstructible</code> and <code class="computeroutput">NothrowAssignable</code> (not regarding the state of <code class="computeroutput">x</code>), Basic exception guarantee otherwise.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Linear in the size of <code class="computeroutput">*this</code>. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">iterator</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a94c9c985da196b65ea599a753f61db42"></a><span class="identifier">insert</span><span class="special">(</span><span class="identifier">const_iterator</span> position<span class="special">,</span> <span class="identifier">size_type</span> n<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">T</span> <span class="special">&amp;</span> x<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Copy constructs <code class="computeroutput">n</code> elements before the element pointed by <code class="computeroutput">position</code>, using <code class="computeroutput">x</code> as constructor argument. Invalidates iterators if reallocation is needed.</p>
<p><span class="bold"><strong>Requires</strong></span>: <code class="computeroutput">T</code> shall be <a href="http://en.cppreference.com/w/cpp/concept/CopyInsertable" target="_top">CopyInsertable</a> into <code class="computeroutput">*this</code> and and <a href="http://en.cppreference.com/w/cpp/concept/CopyAssignable" target="_top">CopyAssignable</a>.</p>
<p><span class="bold"><strong>Returns</strong></span>: Iterator pointing to the first inserted element, or <code class="computeroutput">position</code>, if <code class="computeroutput">n</code> is zero.</p>
<p><span class="bold"><strong>Exceptions</strong></span>: Strong exception guarantee if <code class="computeroutput">T</code> is <code class="computeroutput">NothrowConstructible</code> and <code class="computeroutput">NothrowAssignable</code>, Basic exception guarantee otherwise.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Linear in the size of <code class="computeroutput">*this</code> and <code class="computeroutput">n</code>. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> InputIterator<span class="special">&gt;</span> 
  <span class="identifier">iterator</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a528cb99146ad3a610716d0ef31d52afd"></a><span class="identifier">insert</span><span class="special">(</span><span class="identifier">const_iterator</span> position<span class="special">,</span> <span class="identifier">InputIterator</span> first<span class="special">,</span> 
                  <span class="identifier">InputIterator</span> <span class="identifier">last</span>  BOOST_CONTAINER_DOCIGN<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Copy constructs elements before the element pointed by position using each element in the range pointed by <code class="computeroutput">first</code> and <code class="computeroutput">last</code> as constructor arguments. Invalidates iterators if reallocation is needed.</p>
<p><span class="bold"><strong>Requires</strong></span>: <code class="computeroutput">T</code> shall be <a href="http://en.cppreference.com/w/cpp/concept/EmplaceConstructible" target="_top">EmplaceConstructible</a> into <code class="computeroutput">*this</code> from <code class="computeroutput">*first</code>. If the specified iterator does not meet the forward iterator requirements, <code class="computeroutput">T</code> shall also be <a href="http://en.cppreference.com/w/cpp/concept/MoveInsertable" target="_top">MoveInsertable</a> into <code class="computeroutput">*this</code> and <a href="http://en.cppreference.com/w/cpp/concept/MoveAssignable" target="_top">MoveAssignable</a>.</p>
<p><span class="bold"><strong>Precondition</strong></span>: <code class="computeroutput">first</code> and <code class="computeroutput">last</code> are not iterators into <code class="computeroutput">*this</code>.</p>
<p><span class="bold"><strong>Returns</strong></span>: Iterator pointing to the first inserted element, or <code class="computeroutput">position</code>, if <code class="computeroutput">first == last</code>.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Linear in the size of <code class="computeroutput">*this</code> and <code class="computeroutput">N</code> (where <code class="computeroutput">N</code> is the distance between <code class="computeroutput">first</code> and <code class="computeroutput">last</code>). Makes only <code class="computeroutput">N</code> calls to the constructor of <code class="computeroutput">T</code> and no reallocations if iterators <code class="computeroutput">first</code> and <code class="computeroutput">last</code> are of forward, bidirectional, or random access categories. It makes 2N calls to the copy constructor of <code class="computeroutput">T</code> and `O(log(N)) reallocations if they are just input iterators.</p>
<p><span class="bold"><strong>Exceptions</strong></span>: Strong exception guarantee if <code class="computeroutput">T</code> is <code class="computeroutput">NothrowConstructible</code> and <code class="computeroutput">NothrowAssignable</code>, Basic exception guarantee otherwise.</p>
<p><span class="bold"><strong>Remarks</strong></span>: Each iterator in the range <code class="computeroutput">[first,last)</code> shall be dereferenced exactly once, unless an exception is thrown. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">iterator</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1ae34807e8136661c866a16a1aff10e9fe"></a><span class="identifier">insert</span><span class="special">(</span><span class="identifier">const_iterator</span> position<span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">initializer_list</span><span class="special">&lt;</span> <span class="identifier">T</span> <span class="special">&gt;</span> il<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Equivalent to</strong></span>: <code class="computeroutput">insert(position, il.begin(), il.end())</code> </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">iterator</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a19794e23c7d70e29670ebd3f71cf7f84"></a><span class="identifier">erase</span><span class="special">(</span><span class="identifier">const_iterator</span> position<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Destroys the element pointed by <code class="computeroutput">position</code> and removes it from the devector. Invalidates iterators.</p>
<p><span class="bold"><strong>Requires</strong></span>: <code class="computeroutput">T</code> shall be <a href="http://en.cppreference.com/w/cpp/concept/MoveAssignable" target="_top">MoveAssignable</a>.</p>
<p><span class="bold"><strong>Precondition</strong></span>: <code class="computeroutput">position</code> must be in the range of <code class="computeroutput">[<a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1aeea85e1edbcae36ac717fb8b4539418e">begin()</a>, <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1afc6dab064df380d9721614abc5b234ae">end()</a>)</code>.</p>
<p><span class="bold"><strong>Returns</strong></span>: Iterator pointing to the element immediately following the erased element prior to its erasure. If no such element exists, <code class="computeroutput"><a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1afc6dab064df380d9721614abc5b234ae">end()</a></code> is returned.</p>
<p><span class="bold"><strong>Exceptions</strong></span>: Strong exception guarantee if <code class="computeroutput">T</code> is <code class="computeroutput">NothrowAssignable</code>, Basic exception guarantee otherwise.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Linear in half the size of <code class="computeroutput">*this</code>. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">iterator</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1ae742158fd3bc642f9a759f18e046210f"></a><span class="identifier">erase</span><span class="special">(</span><span class="identifier">const_iterator</span> first<span class="special">,</span> <span class="identifier">const_iterator</span> last<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Destroys the range <code class="computeroutput">[first,last)</code> and removes it from the devector. Invalidates iterators.</p>
<p><span class="bold"><strong>Requires</strong></span>: <code class="computeroutput">T</code> shall be <a href="http://en.cppreference.com/w/cpp/concept/MoveAssignable" target="_top">MoveAssignable</a>.</p>
<p><span class="bold"><strong>Precondition</strong></span>: <code class="computeroutput">[first,last)</code> must be in the range of <code class="computeroutput">[<a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1aeea85e1edbcae36ac717fb8b4539418e">begin()</a>, <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1afc6dab064df380d9721614abc5b234ae">end()</a>)</code>.</p>
<p><span class="bold"><strong>Returns</strong></span>: Iterator pointing to the element pointed to by <code class="computeroutput">last</code> prior to any elements being erased. If no such element exists, <code class="computeroutput"><a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1afc6dab064df380d9721614abc5b234ae">end()</a></code> is returned.</p>
<p><span class="bold"><strong>Exceptions</strong></span>: Strong exception guarantee if <code class="computeroutput">T</code> is <code class="computeroutput">NothrowAssignable</code>, Basic exception guarantee otherwise.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Linear in half the size of <code class="computeroutput">*this</code> plus the distance between <code class="computeroutput">first</code> and <code class="computeroutput">last</code>. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">iterator</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a6ea4e1e139639d82eafdfc580c86b56e"></a><span class="identifier">erase</span><span class="special">(</span><span class="identifier">iterator</span> first<span class="special">,</span> <span class="identifier">iterator</span> last<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Destroys the range <code class="computeroutput">[first,last)</code> and removes it from the devector. Invalidates iterators.</p>
<p><span class="bold"><strong>Requires</strong></span>: <code class="computeroutput">T</code> shall be <a href="http://en.cppreference.com/w/cpp/concept/MoveAssignable" target="_top">MoveAssignable</a>.</p>
<p><span class="bold"><strong>Precondition</strong></span>: <code class="computeroutput">[first,last)</code> must be in the range of <code class="computeroutput">[<a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1aeea85e1edbcae36ac717fb8b4539418e">begin()</a>, <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1afc6dab064df380d9721614abc5b234ae">end()</a>)</code>.</p>
<p><span class="bold"><strong>Returns</strong></span>: Iterator pointing to the element pointed to by <code class="computeroutput">last</code> prior to any elements being erased. If no such element exists, <code class="computeroutput"><a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1afc6dab064df380d9721614abc5b234ae">end()</a></code> is returned.</p>
<p><span class="bold"><strong>Exceptions</strong></span>: Strong exception guarantee if <code class="computeroutput">T</code> is <code class="computeroutput">NothrowAssignable</code>, Basic exception guarantee otherwise.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Linear in half the size of <code class="computeroutput">*this</code>. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">void</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1aeaab3a1c699f6dc26ef570f68c4a378e"></a><span class="identifier">swap</span><span class="special">(</span><a class="link" href="classboost_1_1container_1_1devector.html" title="Class template devector">devector</a> <span class="special">&amp;</span> b<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: exchanges the contents of <code class="computeroutput">*this</code> and <code class="computeroutput">b</code>.</p>
<p><span class="bold"><strong>Requires</strong></span>: instances of <code class="computeroutput">T</code> must be swappable by unqualified call of <code class="computeroutput">swap</code> and <code class="computeroutput">T</code> must be <a href="http://en.cppreference.com/w/cpp/concept/MoveInsertable" target="_top">MoveInsertable</a> into <code class="computeroutput">*this</code>.</p>
<p><span class="bold"><strong>Precondition</strong></span>: The allocators should allow propagation or should compare equal.</p>
<p><span class="bold"><strong>Exceptions</strong></span>: Basic exceptions guarantee if not <code class="computeroutput">noexcept</code>.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">void</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a6f66f4610f5ad07d6f08a74be90c2c7c"></a><span class="identifier">clear</span><span class="special">(</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Destroys all elements in the devector. Invalidates all references, pointers and iterators to the elements of the devector.</p>
<p><span class="bold"><strong>Postcondition</strong></span>: <code class="computeroutput"><a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1adf610789591b2fce61ce24fdd8032308">empty()</a> &amp;&amp; <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1adc07fd187fc51b2535e6929573a71274">front_free_capacity()</a> == 0 &amp;&amp; <a class="link" href="classboost_1_1container_1_1devector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a7ed0d23190215ed4aba56a462e9f3183">back_free_capacity()</a> == old capacity</code>.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Linear in the size of <code class="computeroutput">*this</code>.</p>
<p><span class="bold"><strong>Remarks</strong></span>: Does not free memory. </p>
</li>
</ol></div>
</div>
<div class="refsect2">
<a name="id-1.3.8.14.8.3.4.15"></a><h3>
<a name="id18-bb"></a><code class="computeroutput">devector</code> private member functions</h3>
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem"><pre class="literallayout"><span class="keyword">void</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a0dbc6122b18d0853e820f1ec62074d7d"></a><span class="identifier">priv_move_assign</span><span class="special">(</span><a class="link" href="classboost_1_1container_1_1devector.html" title="Class template devector">devector</a> <span class="special">&amp;&amp;</span> x<span class="special">,</span> <span class="identifier">dtl</span><span class="special">::</span><span class="identifier">bool_</span><span class="special">&lt;</span> <span class="keyword">true</span> <span class="special">&gt;</span><span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">void</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a0ee675b9a9389f917ead9380778e619f"></a><span class="identifier">priv_move_assign</span><span class="special">(</span><a class="link" href="classboost_1_1container_1_1devector.html" title="Class template devector">devector</a> <span class="special">&amp;&amp;</span> x<span class="special">,</span> <span class="identifier">dtl</span><span class="special">::</span><span class="identifier">bool_</span><span class="special">&lt;</span> <span class="keyword">false</span> <span class="special">&gt;</span><span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="identifier">size_type</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a531a2158b204f7f144015fda0b626b0e"></a><span class="identifier">pos_to_index</span><span class="special">(</span><span class="identifier">const_iterator</span> i<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">bool</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a346d914e8f2c67e5711e0cd135da22d6"></a><span class="identifier">should_move_back</span><span class="special">(</span><span class="identifier">const_iterator</span> i<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="identifier">size_type</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a40f1428ad2515f6c3d7d551ee7aa7da3"></a><span class="identifier">front_capacity</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="identifier">size_type</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a1aadfb5294eacb232f1d78a578bdc087"></a><span class="identifier">back_capacity</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
</ol></div>
</div>
<div class="refsect2">
<a name="id-1.3.8.14.8.3.4.16"></a><h3>
<a name="id19-bb"></a><code class="computeroutput">devector</code> private static functions</h3>
<div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem"><pre class="literallayout"><span class="keyword">static</span> <span class="identifier">iterator</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1devector_1a0caa992416af384257296de8e51638f1"></a><span class="identifier">unconst_iterator</span><span class="special">(</span><span class="identifier">const_iterator</span> i<span class="special">)</span><span class="special">;</span></pre></li></ol></div>
</div>
</div>
</div>
<div class="copyright-footer">Copyright © 2009-2018 Ion Gaztanaga<p>
        Distributed under the Boost Software License, Version 1.0. (See accompanying
        file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
      </p>
</div>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="structboost_1_1container_1_1pmr_1_1deque__of.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../boost_container_header_reference.html#doxygen.boost_container_header_reference.devector_8hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="structboost_1_1container_1_1reserve__only__tag__t.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>
